Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Releases: jbasko/configmanager

v1.23.0

11 Jun 16:34
Compare
Choose a tag to compare
  • Section.load(), settings.load_sources
  • Python keywords can be item/section names
  • Section.add_schema()
  • item_getter and item_setter settings renamed to key_getter and key_setter

v1.20.1

11 Jun 13:47
Compare
Choose a tag to compare

Config declarations renamed to schemas which is what they are

v1.20.0

11 Jun 13:25
Compare
Choose a tag to compare

Added a way to safely access sections and items (not values) irrespective of user customisations: Section.get_item(*key) and Section.get_section(*key)

v1.19.0

11 Jun 11:59
Compare
Choose a tag to compare

PlainConfig added for users who don't need the rich configuration Item functionality and instead want to see just calculated values of configuration items instead.

v1.18.0

11 Jun 11:05
Compare
Choose a tag to compare

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'

v1.17.0

11 Jun 01:19
Compare
Choose a tag to compare

Allow Sections to be created on their own.

v1.16.0

11 Jun 00:22
Compare
Choose a tag to compare

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

v1.15.0

10 Jun 20:41
Compare
Choose a tag to compare

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.

v1.14.4

08 Jun 21:15
Compare
Choose a tag to compare
  • Adds flat=True keyword argument to both load_values and dump_values
  • Adds str_path_separator setting

v1.14.3

08 Jun 20:19
Compare
Choose a tag to compare

All iterators accept key= function (not just string)