Skip to content

openfoodfacts_proxy.app

source module openfoodfacts_proxy.app

Functions

  • lifespan — Manage application lifespan: init/close clients and scheduler.

  • create_app — Create and configure the FastAPI application.

source async lifespan(app: FastAPI) → AsyncGenerator[None]

Manage application lifespan: init/close clients and scheduler.

source create_app(*, image_url_mapper: OpenFoodFactsUrlMapper | None = None) → FastAPI

Create and configure the FastAPI application.