Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aniketmaurya/tiny-api

A tiny library for building REST APIs with FastAPI like interface.
https://github.com/aniketmaurya/tiny-api

asgi nogil python starlette

Last synced: about 1 month ago
JSON representation

A tiny library for building REST APIs with FastAPI like interface.

Awesome Lists containing this project

README

        

# TinyAPI 🚀

A FastAPI like lean library for building REST APIs.

> Created this project as a temporary replacement of FastAPI for Python 3.13 free-threading support.

## Example:

```python
from starlette.responses import JSONResponse
import uvicorn
from tiny_api import TinyAPI

app = TinyAPI()

@app.router.get("/")
async def hello(request):
return JSONResponse({"hello": "world"})

if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8000)
```