ocrd.cli.network module¶
OCR-D CLI: management of network components
ocrd network¶
Managing network components
ocrd network [OPTIONS] COMMAND [ARGS]...
client¶
A client for interacting with the network modules. The client CLI mimics the WebAPI endpoints
ocrd network client [OPTIONS] COMMAND [ARGS]...
discovery¶
The discovery endpoint of the WebAPI
ocrd network client discovery [OPTIONS] COMMAND [ARGS]...
processing¶
The processing endpoint of the WebAPI
ocrd network client processing [OPTIONS] COMMAND [ARGS]...
processor¶
ocrd network client processing processor [OPTIONS] PROCESSOR_NAME
Options
- --address <address>¶
- -m, --mets <mets>¶
Required
- -I, --input-file-grp <input_file_grp>¶
- -O, --output-file-grp <output_file_grp>¶
- -g, --page-id <page_id>¶
- -p, --parameter <parameter>¶
Parameters, either JSON string or path to JSON file
- --result-queue-name <result_queue_name>¶
- --callback-url <callback_url>¶
- --agent-type <agent_type>¶
Arguments
- PROCESSOR_NAME¶
Required argument
workflow¶
The workflow endpoint of the WebAPI
ocrd network client workflow [OPTIONS] COMMAND [ARGS]...
workspace¶
The workspace endpoint of the WebAPI
ocrd network client workspace [OPTIONS] COMMAND [ARGS]...
processing-server¶
Start the Processing Server (proxy between the user and the Processing Worker(s) / Processor Server(s))
ocrd network processing-server [OPTIONS] PATH_TO_CONFIG
Options
- -a, --address <address>¶
Required The URL of the Processing server, format: host:port
Arguments
- PATH_TO_CONFIG¶
Required argument
processing-worker¶
Start Processing Worker (a specific ocr-d processor consuming tasks from RabbitMQ queue)
ocrd network processing-worker [OPTIONS] PROCESSOR_NAME
Options
- -q, --queue <queue>¶
Required The URL of the Queue Server, format: amqp://username:password@host:port/vhost
- -d, --database <database>¶
Required The URL of the MongoDB, format: mongodb://host:port
Arguments
- PROCESSOR_NAME¶
Required argument
processor-server¶
Start Processor Server (standalone REST API OCR-D processor)
ocrd network processor-server [OPTIONS] PROCESSOR_NAME
Options
- -a, --address <address>¶
Required The URL of the processor server, format: host:port
- -d, --database <database>¶
Required The URL of the MongoDB, format: mongodb://host:port
Arguments
- PROCESSOR_NAME¶
Required argument