ocrd_network.models.messages module

class ocrd_network.models.messages.PYResultMessage(*, job_id: str, state: JobState = JobState.unset, path_to_mets: str | None = None, workspace_id: str | None = None)[source]

Bases: BaseModel

Wraps the parameters required to make a result message request

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

job_id: str
state: JobState
path_to_mets: str | None
workspace_id: str | None
class Config[source]

Bases: object

schema_extra = {'example': {'job_id': 'd8e36726-ed28-5476-b83c-bc31d2eecf1f', 'path_to_mets': '/path/to/mets.xml', 'state': JobState.success, 'workspace_id': 'c7f25615-fc17-4365-a74d-ad20e1ddbd0e'}}