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.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for zimran_fastapi-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9077c706f5bced6d78c4db16869adcb912ce47f6f7ac11df3dadf2807da82d8e |
|
MD5 | f3cd7ee39e58d3e60e777ae885dfe8d4 |
|
BLAKE2b-256 | 9ea57125be581a24fbdda7303fb639c025d51d21a77751cec3c4bec050578eba |