Tyro

Latest version: v0.9.2

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

Scan your dependencies

Page 1 of 22

0.9.2

What's Changed
* Apply `use_underscores` to decorator-based subcommand names in https://github.com/brentyi/tyro/pull/208
* Less restricted type expansion, more robust subcommand matching, improved error messages in https://github.com/brentyi/tyro/pull/204


**Full Changelog**: https://github.com/brentyi/tyro/compare/v0.9.1...v0.9.2

0.9.1

**Full Changelog**: https://github.com/brentyi/tyro/compare/v0.8.14...v0.9.1

Python 3.13 support, custom constructor API, and significant refactor of internals.

What's Changed
* `typing.Annotated` workaround for pydantic v1 in https://github.com/brentyi/tyro/pull/187
* Primitive handling rewrite in https://github.com/brentyi/tyro/pull/189
* Start struct handling rewrite in https://github.com/brentyi/tyro/pull/191
* Fix dictionary + numeric tower edge cases introduced by new primitive API in https://github.com/brentyi/tyro/pull/192
* Numeric tower improvements + test in https://github.com/brentyi/tyro/pull/193
* `setuptools` => `hatchling` in https://github.com/brentyi/tyro/pull/196
* Helptext, docs fixes in https://github.com/brentyi/tyro/pull/199
* Support Python 3.13 in https://github.com/brentyi/tyro/pull/200
* More complete custom constructor docs, refinements in https://github.com/brentyi/tyro/pull/201

**Full Changelog**: https://github.com/brentyi/tyro/compare/v0.8.14...v0.9.1

0.8.14

What's Changed

Improvements for type alias support, generics, and helptext generation.

* Fix edge cases associated with nested/recursive PEP 695 aliases by brentyi in https://github.com/brentyi/tyro/pull/181
* Support cyclic generics by brentyi in https://github.com/brentyi/tyro/pull/182
* Minor helptext generation improvements by brentyi in https://github.com/brentyi/tyro/pull/184


**Full Changelog**: https://github.com/brentyi/tyro/compare/v0.8.13...v0.8.14

0.8.13

What's Changed

* Support suppressed arguments with duplicate names + light refactor for maintainability by brentyi in https://github.com/brentyi/tyro/pull/174
* Allow subcommand_cli_from_dict to specify console_outputs by mirceamironenco in https://github.com/brentyi/tyro/pull/175
* More complete wrappers in `tyro.extras` (for `torchrun`, etc) by brentyi in https://github.com/brentyi/tyro/pull/176
* Fix edge case when combining PEP 695 aliases with `typing.Annotated[]` by brentyi in https://github.com/brentyi/tyro/pull/178
* Fix generic aliases generated by Python 3.12 `type` statements by brentyi in https://github.com/brentyi/tyro/pull/179
* (refactor) Context-based resolution for generic types by brentyi in https://github.com/brentyi/tyro/pull/180

New Contributors
* mirceamironenco made their first contribution in https://github.com/brentyi/tyro/pull/175

**Full Changelog**: https://github.com/brentyi/tyro/compare/v0.8.12...v0.8.13

0.8.12

What's Changed

Minor bug fixes, new features: `tyro.conf.EnumChoicesFromValues` (thanks mcd!), `tyro.extras.SubcommandApp` (thanks jedie!).


* Fix inconsistency between `type[T]` and `typing.Type[T]` annotations by brentyi in https://github.com/brentyi/tyro/pull/165
* Feature: Markers: EnumChoicesFromValues by emcd in https://github.com/brentyi/tyro/pull/168
* Fix `--tyro-write-completion` when `use_underscores=True` by brentyi in https://github.com/brentyi/tyro/pull/173
* Decorator-based subcommand API (`tyro.extras.SubcommandApp`) by brentyi in https://github.com/brentyi/tyro/pull/169

New Contributors
* emcd made their first contribution in https://github.com/brentyi/tyro/pull/168

**Full Changelog**: https://github.com/brentyi/tyro/compare/v0.8.11...v0.8.12

0.8.11

What's Changed
* Support Enum aliases by kevinddchen in https://github.com/brentyi/tyro/pull/162
* Support overriding behavior hint in argument helptext by brentyi in https://github.com/brentyi/tyro/pull/161


**Full Changelog**: https://github.com/brentyi/tyro/compare/v0.8.10...v0.8.11

Page 1 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.