ocrd_network.processor_server module

class ocrd_network.processor_server.ProcessorServer(mongodb_addr: str, processor_name: str = '', processor_class=None)[source]

Bases: FastAPI

async on_startup()[source]
async on_shutdown() None[source]

TODO: Perform graceful shutdown operations here

add_api_routes_processing()[source]
async get_processor_info()[source]
async create_processor_task(job_input: PYJobInput, background_tasks: BackgroundTasks)[source]
async run_processor_task(job: DBProcessorJob)[source]
get_ocrd_tool()[source]
get_version() str[source]
run_server(host, port)[source]
async get_processor_job(job_id: str) PYJobOutput[source]
async get_processor_job_log(job_id: str) FileResponse[source]