Skip to content

WSGI framework with routing and middleware support.

License

Notifications You must be signed in to change notification settings

nemosanima/utopia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utopia

WSGI framework with routing and middleware support.

Install dependencies

poetry

$ poetry install

pip

$ pip install parse gunicorn

Example

example.py:

from src import Utopia

app = Utopia()


@app.router("/", methods=["GET"])
def read_root(request):
    return {"Hello": "World"}


@app.router("/items/{item_id}", methods=["GET"])
def read_item(request, item_id):
    return {"item_id": item_id}

Then run the application using Gunicorn:

$ gunicorn example:app

About

WSGI framework with routing and middleware support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages