Preconfigured FastAPI application
Project description
Installation
pip install zimran-fastapi
Usage
from zimran.config import CommonSettings
from zimran.fastapi import create_app
class Settings(CommonSettings):
pass
settings = Settings()
app = create_app(settings.environment)
from fastapi import Depends, Response
from zimran.fastapi.dependencies import get_user_id
async def handler(user_id: int = Depends(get_user_id)) -> Response:
pass
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zimran_fastapi-2.0.4.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for zimran_fastapi-2.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0141b5692fd130938588ea5fe24a42ea236001f139033db92ed0cc821abf221b |
|
MD5 | 81594c468e335be9a5f3d99673e2a934 |
|
BLAKE2b-256 | 7b98a7ffdb1beaa6d3d7cfdfff0b8dbcae7fd6d30eef5df951f5dbedff4ed348 |