Tinche / uapi

https://uapi.threeofwands.com
Apache License 2.0
90 stars 4 forks source link
api python web

uapi

Documentation License: Apache2 PyPI Supported Python Versions Coverage

uapi is an elegant, high-level, extremely low-overhead Python microframework for writing HTTP APIs, either synchronously or asynchronously.

uapi uses a lower-level HTTP framework to run. Currently supported frameworks are aiohttp, Django, Flask, Quart, and Starlette. An uapi app can be easily integrated into an existing project based on one of these frameworks, and a pure uapi project can be easily switched between them when needed.

Using uapi enables you to:

Here's a simple taste (install Flask and gunicorn first):

from uapi.flask import App

app = App()

@app.get("/")
def index() -> str:
    return "Index"

app.serve_openapi()
app.serve_elements()

app.run(__name__)  # Now open http://localhost:8000/elements

Project Information

License

uapi is written by Tin Tvrtković and distributed under the terms of the Apache-2.0 license.