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-1.2.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for zimran_fastapi-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | badecc507f30e15ed5b16bb466cf599435ead0c41afd50ebeca9df2c125f6ade |
|
MD5 | 395ec0ec38e4ec66d14e84ee8c930edc |
|
BLAKE2b-256 | 8818ee1a561a2b95a146ca14a31061c41f11c4216876da1b92f8e3afe773aa78 |