datumaro.cli.commands.require_project.modification.import_#
Functions
|
|
|
- datumaro.cli.commands.require_project.modification.import_.build_parser(parser_ctor=<class 'argparse.ArgumentParser'>)[source]#
- exception datumaro.cli.commands.require_project.modification.import_.CliException[source]#
Bases:
DatumaroError
- class datumaro.cli.commands.require_project.modification.import_.MultilineFormatter(keep_natural=False, **kwargs)[source]#
Bases:
HelpFormatter
Keeps line breaks introduced with ‘|n’ separator and spaces introduced with ‘|s’, also removes the ‘code-block’ directives.
- exception datumaro.cli.commands.require_project.modification.import_.ProjectNotFoundError(path)[source]#
Bases:
DatumaroError
Method generated by attrs for class ProjectNotFoundError.
- path#
- datumaro.cli.commands.require_project.modification.import_.generate_next_name(names: Iterable[str], basename: str, sep: str = '.', suffix: str = '', default: str | None = None) str [source]#
Generates the “next” name by appending a next index to the occurrence of the basename with the highest index in the input collection.
Returns: next string name
Example:
- Inputs:
name_abc
name_base
name_base1
name_base5
Basename: name_base
Output: name_base6
- datumaro.cli.commands.require_project.modification.import_.join_cli_args(args: Namespace, *names: Iterable[str]) List [source]#
Merges arg values in a list
- datumaro.cli.commands.require_project.modification.import_.load_project(project_dir, readonly=False)[source]#
load a Project.
- datumaro.cli.commands.require_project.modification.import_.on_error_do(callback, *args, ignore_errors=False, kwargs=None)[source]#
- datumaro.cli.commands.require_project.modification.import_.scope_add(cm: ContextManager[T]) T [source]#