Metadata Module
Program metadata introspection for use in usage, help text, and documentation.
- author:
Doug Skrypa
- class cli_command_parser.metadata.MetadataBase(inheritable: bool = True)[source]
Bases:
object
- inheritable
- get_parent(instance: ProgramMetadata) ProgramMetadata | None [source]
- get_value(instance: ProgramMetadata)[source]
- name
- class cli_command_parser.metadata.Metadata(default, inheritable: bool = True)[source]
Bases:
MetadataBase
- default
- get_value(instance: ProgramMetadata)[source]
- class cli_command_parser.metadata.DynamicMetadata(func: Callable[[ProgramMetadata], Any], inheritable: bool = True)[source]
Bases:
MetadataBase
- func
- get_value(instance: ProgramMetadata)[source]
- class cli_command_parser.metadata.ProgramMetadata(**kwargs)[source]
Bases:
object
- parent: ProgramMetadata | None = None
- distribution: Distribution | None
- path: Path
- classmethod for_command(command: CommandType, *, parent: ProgramMetadata = None, path: Path = None, prog: str = None, url: str = None, docs_url: str = None, email: str = None, version: str = None, usage: str = None, description: str = None, epilog: str = None, doc_name: str = None) ProgramMetadata [source]