Scriptconfig

Latest version: v0.8.2

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

Scan your dependencies

Page 1 of 7

0.8.2

Added

* The "type" of a `Value` can now be set to "smartcast:legacy" for explicit old behavior or "smartcast:v1" for the new candidate behavior.

Changed

* The `Value` class can now take `default` as a keyword argument for better
interoperability with argparse. We may remove the `value` keyword in the
future in favor of this.

* The `smartcast` `allow_split` now works, and defaults to "auto", which will prepare us for a backwards incompatible change to remove the auto string split behavior.

Fixed

* Fix issue with internal argparse change in CPython125355


Added
* Add experimental new method `DataConfig.cls_from_argparse` which dynamically
creates a scriptconfig object from an existing argparse object. Some advanced
argparse options may not be supported.

0.8.1

Added

* New convenience arguments to `.cli`
* Support for 3.13

0.8.0

Add
* Add experimental new flag `__allow_newattr__` which relaxes the constraint
that you can't add keys on the fly.

Removed

* Remove 3.6 and 3.7 support


Fix:
* Fixed the `define` method.
* Initial implementation of `port_from_click`

0.7.15

Added
* Allow special options to be passed to cli

0.7.14

Changed
* Better error messages when parsing argv
* Add a docstring to `DataConfig`

0.7.13

Fixed
* Fix issue caused by a CPython patch https://github.com/python/cpython/pull/115674

Page 1 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.