Declarative CLIs with argparse and dataclasses
argparse_dataclass Declarative CLIs with argparse and dataclasses. Features Features marked with a ✓ are currently implemented; features marked with a ⊘ are not yet implemented. [✓] Positional arguments [✓] Boolean flags [✓] Integer, string, float, and other simple types as arguments [✓] Default values [✓] Arguments with a finite set of choices [⊘] Subcommands [⊘] Mutually exclusive groups Examples Using dataclass decorator >>> from argparse_dataclass import dataclass >>> @dataclass … class Options: … x: int = 42 … y: bool […]
Read more