Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/aniketmaurya/tiny-api
- Owner: aniketmaurya
- Created: 2024-10-09T08:40:48.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T23:14:06.000Z (2 months ago)
- Last Synced: 2024-11-27T03:52:53.786Z (about 1 month ago)
- Topics: asgi, nogil, python, starlette
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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 TinyAPIapp = 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)
```