app.main

Main script Flow Preprocessing Service

Functions

check_api_key([api_key])

Checking the API key from the request header against the environment variable.

get_all_preprocess_statuses(request)

Retrieve all preprocess statuses.

get_preprocess_status(uuid)

Retrieve a preprocess status by its UUID.

health_check(request)

Health check endpoint to verify the service is running.

lifespan(app)

Asynchronous context manager for FastAPI application lifespan events.

log_requests(request, call_next)

Middleware to log all HTTP-Requests and Responses.

start_hf_preprocess([preprocess_parameters])

Start a new preprocess job with a HuggingFace repository name.

start_zip_preprocess([preprocess_parameters])

Start a new preprocess job with a ZIP-URL.