openfoodfacts_proxy.cli
source module openfoodfacts_proxy.cli
Functions
-
main — OpenFoodFacts Proxy - A FastAPI reverse proxy with local caching.
-
serve — Start the FastAPI proxy server.
-
import_full — Download and import the full MongoDB dump from OpenFoodFacts.
-
import_delta — Download and import delta updates from OpenFoodFacts.
OpenFoodFacts Proxy - A FastAPI reverse proxy with local caching.
source serve(host: str, port: int, reload: bool) → None
Start the FastAPI proxy server.
source import_full() → None
Download and import the full MongoDB dump from OpenFoodFacts.
source import_delta() → None
Download and import delta updates from OpenFoodFacts.