Skip to content

Releases: NetherlandsForensicInstitute/confidence

v0.17.2

25 Nov 12:34

Choose a tag to compare

  • Fix dump functions failing to write nested Configuration instances in TOML format.

v0.17.1

15 Oct 13:54

Choose a tag to compare

  • Avoid crashing on template loaders containing {extension}, issue a deprecation warning when this is used.

v0.17

08 Oct 11:58

Choose a tag to compare

  • Drop support for Python 3.9.
  • Introduce confidence.Format with three concrete implementations: confidence.JSON, confidence.TOML and confidence.YAML, which can be customized before use (e.g. format = YAML(suffix='.yml')).
  • Deprecate the use of extension argument to loading functions and encoding argument to dumping functions, both can be controlled with a confidence.Format.

v0.16.1

26 Aug 12:27

Choose a tag to compare

  • Let Configuration.get() mimic the behaviour of dict.get(), returning None by default for missing keys.

v0.16

18 Apr 12:31

Choose a tag to compare

  • Drop support for Python 3.8.
  • Add merge function to combine multiple mappings into a single Configuration.
  • Enable the use of the binary or / union operator on Configuration instances, analogous to a builtin dict (e.g. config = defaults | overrides).

0.12

01 Mar 16:46
0.12
7cbdadd

Choose a tag to compare

  • Use named loggers, default confidence.* library loggers to silence as described in the docs.
  • Resolve references in sequences.

0.11

25 Nov 10:30

Choose a tag to compare

  • Parse values of environment variables as YAML values (e.g. NAME_KEY=yes will result in key being True)
  • Add INFO-level logging of files and environment variables being used to load configuration

0.10

04 Aug 14:09

Choose a tag to compare

  • Remove configurable key separator, hardcode the default.
  • Rename enumeration values (like Locality.USER) to be upper case.
  • Add dump, dumpf and dumps functions to dump Configuration instances to YAML format.

0.9

01 Feb 14:57

Choose a tag to compare

0.9
  • Add type hints to confidence

0.8

14 Dec 11:59

Choose a tag to compare

0.8
  • Add human-readable reprs to Configuration and ConfigurationSequence
  • Make ConfigurationSequence more list-like by enabling addition operator (configured_sequence + [1, 2, 3] or (1, 2, 3) + configured_sequence)