Scriptconfig

Latest version: v0.8.1

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

Scan your dependencies

Page 2 of 6

0.7.11

Added
* New `port_to_argparse` method that will generate text for a nearly equivalent
argparse version of the config object.

* Can now set `isflag='counter'` to get a variable that will increment on
multiple specifications of the flag.

* Added `__allow_abbrev__` control option.

Changed
* Quality of life updates to ModalConfig, autocomplete flag,
* Modified ubelt repr to be more executable
* Added `util` submodule.

Fixed
* The `.cli` classmethod no longer causes `__post_init__` to be called twice.

0.7.10

Changed
* Reduced import time
* Better handling of nested modal CLIs

0.7.9

Added
* New alternate (more concise) syntax for declaring Modal CLIs


Changed
* Change `ModalCLI.run` to `ModalCLI.main`

0.7.8

Changed

* Autogenerate DataConfig `__init__` docstrings

* Added `__dir__` to DataConfig.

* DataConfig `__setattr__` only forwards to the config for keys that are not
prefixed with underscores. (i.e. the user can now use underscore prefixed
attributes on DataConfig instances without modifying the config dictionary
itself).


Fixed

* Issue on Python 3.9 where staticmethods would be added to the DataConfig defaults.

0.7.7

Added
* Convenience class: Flag

Changed
* Help formatting no longer displays redundant fuzzy hyphen options
* `Config.__fuzzy_hyphens__` now defaults to True
* `Config.cli` now defaults to `strict=True`.
* Add `tag` field to `Value`.

0.7.6

Added
* ubelt urepr registration
* Config objects can now be inherited

Changed

* Help no longer defaults to `<undocumented>`, instead it is just empty.
* Unwrapped values now try to infer if they are a flag.
* The `autocomplete` argument to `.cli` now default to auto

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.