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.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for zimran_fastapi-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e44251da88e6921d7ecb115c4e19996b63459ef5c9445720c4a43b1c886e2b77 |
|
MD5 | 1a94411641aed5750a4d060e532ec24c |
|
BLAKE2b-256 | f65534f32a09368bac59dd7fc470e5bdb3f098e027dbadd84ea0d8da220884c9 |