Scriptconfig

Latest version: v0.8.1

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

Scan your dependencies

Page 5 of 6

0.5.8

Added
* Can now specify alias for a Value as a `str | List[str]`.

Changed
* Arguments can now be specified as both positional and keyword. The keyword
variant will always take priority.

* Changed the way arguments are smart-casted when specified on the commandline

Fixed

* Bug when setting a value to None via the command line

0.5.7

Added
* The `cmdline` argument of `Config` can now be the actual argument string used
on the command line. This will be parsed with shlex and converted to an argv
list.

Fixes
* Fixed issue where `_read_argv` would try to smartcast items where the default
class attribute had a `Value`.


Changed
* The Value object now has a side effect free `cast` method that is called by
`update` when the default value is changed or when handling raw data outside
of the Value object itself.

0.5.6

Fixes
* Security fix, smartcast now uses `ast.literal_eval` instead of `eval`.

0.5.5

Added
* Config objects can now have an "epilog" attribute.

0.5.4

Added
* scfg.Value can now store a position attribute, which specifies it as a positional argument.
* scfg.Value now accepts `nargs` to handle argparse cases.

0.5.3

Fixed
* calling `set(config)`
* `smartcast` now correctly casts things like `"[1,2,3,]"` to `[1, 2, 3]`

Page 5 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.