Configmanager

Latest version: v1.35.1

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

Scan your dependencies

Page 5 of 5

1.18.0

Allow customisation of Item retrieving and setting to an extent that underlying items are completely hidden from the interface, and user just works with item values.


config = Config({'greeting': 'Hello'}, item_getter=lambda item, section: item.value)
assert config.greeting == 'Hello'

1.17.0

Allow Sections to be created on their own.

1.16.0

Allow to combine multiple `Config` instances into one, and handle it well in hooks by allowing sub-configs to manage their stuff independently.

1.15.0

Completely rewritten configuration declaration parser. This fixes nested ordered declaration parsing and allows less flexibility in favour of interface consistency: Lists of tuples mean sections, otherwise lists mean item default value (including empty lists). Empty dictionaries mean item default value, non-empty dictionaries mean sections.

1.14.4

* Adds `flat=True` keyword argument to both `load_values` and `dump_values`
* Adds `str_path_separator` setting

1.14.3

All iterators accept key= function (not just string)

Page 5 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.