Skip to content

Changelog

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.

Unreleased

Changed

  • Moved helper functions to dj_settings.lib

Removed

  • Dropped python 3.9 support

8.0.0 - 2025-04-26

Changed

  • Default has to be set, otherwise it will raise unless the setting is found

7.0.0 - 2025-03-26

Changed

  • Changed yaml parser to follow YAML 1.2 spec

6.0.0 - 2024-09-24

Changed

  • Changed license to BSD 3-Clause
  • Improved error message in section errors

Removed

  • Dropped python 3.8 support

5.0.0 - 2024-03-14

Added

  • Added a @settings_class decorator to create settings classes
  • Allowed all public classes to optionally merge arrays

Changed

  • Moved SettingsParser and setting to a new module
  • Renamed SettingsParser to ConfigParser
  • Renamed setting to get_setting
  • SettingsParser now accepts a list of paths to parse
  • allow_env is now called use_env and it can take a string to change the name for env vars

Removed

  • Dropped python 3.7 support

4.2.1 - 2023-02-28

Fixed

  • Fixed some type hints

4.2.0 - 2022-11-23

Added

  • Allowed parsing env files

4.1.0 - 2022-11-02

Changed

  • Removed the tomli dependency for versions that the standard library TOML parser is present

4.0.0 - 2022-09-26

Added

  • Made the settings to be returned in the order that they appear on the file
  • Allowed overriding the settings with a .d directory

3.0.1 - 2022-05-03

Fixed

  • Fixed a typo that messed using .yml files as settings

3.0.0 - 2022-05-01

Added

  • Exposed FileReader and setting via the __init__ module

Fixed

  • /etc has the lowest priority and the current working directory has the highest

Changed

  • Renamed FileReader to SettingsParser
  • Removed the default section from the ini settings parser

2.1.0 - 2022-04-28

Added

  • Allowed forcing the filetype

2.0.0 - 2022-03-10

Added

  • Allowed passing the path to the FileReader as a string

Changed

  • .conf/.ini/.cfg files are now parsed as python dictionaries

1.0.0 - 2022-02-10

Added

  • Added yaml support

Changed

  • Changed toml parser to tomli

0.4.0 - 2022-02-08

Added

  • Added toml support

0.3.0 - 2022-01-10

Removed

  • Removed changelog from the published wheel

0.2.0 - 2021-12-24

Added

  • Added python310 support

Removed

  • Dropped python36 support
  • Removed the ability to include python files for settings

0.1.1 - 2021-08-13

Added

  • Allowed getting the value from a single setting

0.1.0 - 2020-07-01

Added

  • Allowed including python files for settings