All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.5.5 - 2021-10-20
ConfigurationList
objects do not preserve variables (#20)
0.5.4 - 2021-10-18
- Changelog.
.is_list
property identifyingConfigurationList
objects (#19)
0.5.3 - 2021-10-16
- Explicit support for Python 3.10 (#13).
- Citation file (by @lewiuberg in #16).
- Use GitHub actions for CD (#18).
- Enforce keys to be strings when writing to TOML (by @lewiuberg in #17).
- Fix error message in
.as_namedtuple()
for Python 3.10.
0.5.2 - 2021-06-08
- Handle nested (list) keys in
.replace()
(#12).
0.5.1 - 2020-11-28
- Use GitHub actions for CI (#8).
.copy_section()
(#11).
- Handle
.as_named_tuple()
in Python 3.9. - Reporting correct name of reader in
.source
(#9).
0.5.0 - 2020-06-22
.copy_section()
to support default sections (#7).
- Improved handling of variable interpolation in
.replace()
(#3).
- Properly update configuration, also when
cfg.entry = "value"
is used instead ofcfg.update_entry()
(#4).
0.4.2 - 2020-04-28
- Properly handle updating from nested dictionaries.
0.4.1 - 2020-04-20
.section_names
include parent names as well. Should just be the name of the actual section.
0.4.0 - 2020-04-18
- Proper support for lists inside configurations (#1).
.leafs
,.leaf_keys
,.leaf_values
return lists for consistency with section and entry properties.
0.3.3 - 2020-04-05
- Explicit support for Python 3.9.
- Stand-alone
convert_to()
function exposing converters. pretty_print
parameter when writing to TOML with nicer formatting.
- Default
str()
behavior uses TOML format. .get()
with list keys will recursively get an entry from a nested configuration.
- Allow
replace()
to handle non-strings by implictly converting variable values to strings.
0.3.2 - 2020-02-19
.leafs
,.leaf_keys
,.leaf_values
to iterate over all entries in a nested configuration.
- Simplified support of multi-document YAMLs by only reading the first document.
- Ignore environment variables where conversion fails.
0.3.1 - 2020-01-24
- Support encodings in configuration files.
0.3.0 - 2020-01-09
.section_items
property to iterate over section names and section content.- Reading configurations directly from strings.
- Writers for all supported configuration formats (INI, YAML, JSON, TOML).
.as_file()
for writing configurations to files..as_str()
for writing configurations to strings.
- Proper handling of AttributeErrors.
0.2.1 - 2019-11-12
- Show parents in nested configuration names.
- Allow adding fields when converting to named tuples, dictionaries and strings.
0.2.0 - 2019-11-11
- Convert configurations to named tuples.
- Use named tuples for validation of configuration structure.
0.1.4 - 2019-11-04
- Handle
.cfg
files as INI-files.
- Don't crash when reading environment variables without converters.
0.1.3 - 2019-10-29
- Support JSON files using
json
. - Support reading from environment variables.
- TOML and YAML dependencies are installed as extras.
0.1.2 - 2019-10-22
- Support TOML files using 3rd party
toml
. - Support YAML files using 3rd party
PyYAML
. - Add source information to entries.
- Only import 3rd party libraries when they are actually used.
0.1.1 - 2019-10-17
- Variable interpolation using
{}
handled by `.replace(). - Data type converters when using
.replace()
for entries. - Support INI files using
configparser
.
- Actually return converted entries.
0.1.0 - 2019-10-16
Initial commit.