Skip to main content

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


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)

Uploaded Source

Built Distribution

zimran_fastapi-2.0.4-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page