Tyro

Latest version: v0.9.2

Safety actively analyzes 688803 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 17 of 22

0.2.1

Minor Poetry fixes.

0.2.0

New features:
- Support for mixed-type literals.
- Support nesting structures in standard Python containers: `List[Struct]`, `Set[Struct]`, `Tuple[Struct, Struct]`, `Dict[str, Struct]`, etc.
- Add `dcargs.generate_parser()` for integration with tools like `shtab`, `argcomplete`, `pyzshcomplete`, etc.
- Support defaults with narrower types than annotations.
- Support for including multiple optional subparsers, more clear/verbose subcommand names.
- Support inheritance from generic types.
- Generalized support for directly passing in types, eg `dcargs.cli(Union[SubcommandA, SubcommandB])`.

Maintenance:
- Helptext formatting improvements: consistency for subcommands, Windows support, edge case fixes.
- Reduce redundant logic.

0.1.10

Re-add the `py.typed` marker, which was inadvertently deleted.

0.1.9

- Documentation refactor.
- Serialization utilities have been moved to `dcargs.extras.*`.

0.1.8

- Supporting using built-ins directly: `dcargs.cli(int)`, `dcargs.cli(List[str])`, etc.

0.1.7

- Support for nesting collections. (tuples inside tuples inside dictionaries, etc)
- Overhaul mechanisms for handling `Union` types, which are now supported recursively and much more generally (eg `Union[int, str]`, `Union[Tuple[int, int], Tuple[str, str]]`, etc).
- Support `total=False` for `TypedDict` types.
- Helptext generation improvements: conciseness, ignoring ANSI codes when wrapping.
- Add `prog=` argument to `dcargs.cli()`.
- Various minor stability improvements.

Page 17 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.