Core features of tyro
maintyro is designed to generate robust CLI interfaces from type-annotated Python code. Its core capabilities include:
- Helptext Generation: Automatically creates formatted help messages from docstrings.
- Nested Structures: Supports hierarchical configurations via nested dataclasses.
- Subcommands: Enables complex CLI tools with multiple subcommands.
- Shell Completion: Provides support for shell autocompletion.
- Static Type Integration: Unlike dictionary-based CLI parsers,
tyroworks with typed objects, making it compatible with IDEs and static analysis tools likemypyandpyright.