ocrd.decorators module

ocrd.decorators.ocrd_cli_options(f)[source]

Implement MP CLI.

Usage:

import ocrd_click_cli from ocrd.utils

@click.command()
@ocrd_click_cli
def cli(mets_url):
    print(mets_url)
ocrd.decorators.ocrd_cli_wrap_processor(processorClass, ocrd_tool=None, mets=None, working_dir=None, dump_json=False, help=False, version=False, **kwargs)[source]
ocrd.decorators.ocrd_loglevel(f)[source]

Add an option ‘–log-level’ to set the log level.