Scriptconfig

Latest version: v0.8.2

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

Scan your dependencies

Page 2 of 7

0.7.12

Fixed
* Fixed issue of porting to argparse when object contained non-wrapped default values.

Changed
* `scfg.Flag` no longer errors if isflag is set to a truthy value.
* Rename `port_argparse` as `port_from_argparse` (old method still exists as an alias, but will be deprecated).

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`.

Page 2 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.