neuralib.argp.core

AbstractParser

new_parser

Create ArgumentParser for instance.

new_command_parser

Create ArgumentParser for AbstractParser s.

parse_args

parsing the commandline input args and set the argument attributes.

parse_command_args

Create argparse.ArgumentParser for AbstractParser s.

set_options

set argument attributes from argparse.Namespace .

argument

create an argument attribute.

as_argument

cast argument attribute as an Argument for type checking framework/IDE.

with_defaults

Initialize all argument attributes by assign the default value if provided.

print_help

print help to stdout

as_dict

collect all argument attributes into a dictionary with attribute name to its value.

copy_argument

copy argument from ref to opt

Argument

Descriptor (https://docs.python.org/3/glossary.html#term-descriptor).