wsgi application in 142 lines of code
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

wsgi application with route decorator

In 144 lines of code, with no external dependencies

Example usage

from wsgi import App

app = App()

def home(r):
    # do something with headers

    # do something with query

    return 'Welcome home', {'custom_headers': 'header_be_here'}

@app.route('/form', methods=['POST'])
def form(r):
    # do something with form data and files dictionary

    return 'submitted successfully'

if __name__ == '__main__':