kiwi.cli package

Submodules

kiwi.cli.better_argparse module

class kiwi.cli.better_argparse.HyperPipelineParser(name, pipeline_parser, pipeline_config_key, options_fn=None)[source]

Bases: object

parse(args)[source]
class kiwi.cli.better_argparse.ModelParser(name, pipeline, options_fn, api_module, title=None)[source]

Bases: object

classmethod get_parser(name, **kwargs)[source]
parse_known_args(args)[source]
class kiwi.cli.better_argparse.PipelineParser(name, model_parsers, options_fn=None, add_io_options=True, add_general_options=True, add_logging_options=True, add_save_load_options=True)[source]

Bases: object

static add_config_option(parser, read_file=True)[source]
parse(args)[source]
parse_config_file(file_name)[source]

kiwi.cli.main module

kiwi.cli.main.build_parser()[source]
kiwi.cli.main.cli()[source]

kiwi.cli.opts module

class kiwi.cli.opts.PathType(exists=False)[source]

Bases: object

Factory for creating pathlib.Path objects

Instances of PathType should passed as type= arguments to the ArgumentParser add_argument() method.

Strongly based on argparse.FileType.

Keyword Arguments:
 exists -- Whether the file must exists or not. (-) –
kiwi.cli.opts.general_opts(parser)[source]
kiwi.cli.opts.io_opts(parser)[source]
kiwi.cli.opts.logging_opts(parser)[source]
kiwi.cli.opts.save_load_opts(parser)[source]

Module contents