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.2.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for zimran_fastapi-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e1645fba33002612fa85c50e0e8f8bd0bab12dea689a0d2427f280cfbfc9d48 |
|
MD5 | 0847054211ff0181e24e8b0df7533d62 |
|
BLAKE2b-256 | f3901714ace6dc999fbce07f53be3f97b256ec26440f2b267da039cd5b8c8969 |