Climatecontrol

Latest version: v0.11.0

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

Scan your dependencies

Page 1 of 2

0.11.0

Added

- Python 3.10 support (added to test suite)

Removed

- Python 3.6 support

Changed

- Use `tomli` instead of `toml` package in in preparation for
https://www.python.org/dev/peps/pep-0680/ (tomli is the basis for pythons
future builtin toml support)
- Updated dependencies

0.10.0

Changed

- Allow `settings_files` to contain `pathlib.Path` objects as well as strings.

Removed

- Assigning strings to `settings_files` will no longer coerce strings into lists.

0.9.0

Added

- A "_from_file" key at the root of a file loads the file into the root configuration

Removed

- Remove deprecated `climatecontrol.Settings` (use `climatecontrol.Climate` instead)
- Remove deprecated options `implicit_depth` and `update_on_init`.

0.8.0

Added

- Allow "_from_env" postfix in variables and load settings from the specified
environment variable (similar to "from_file").
- Add "update_log" property which specifies a log of all variables loaded or
removed/replaced.
- Allow overwriting / merging lists
- Allow environment variables to target list indexes (`CLIMATECONTROL_SECTION__0__VALUE=testvalue`)
- Settings proxy object to allow attribute queries (i.e.
`climatecontrol.settings.a.b[0].c`).
- Added initial support for dataclasses as extension `climatecontrol.ext.dataclasses`
- Add "from_*_content" processor allowing direct content to be used in variables
(can be helpful for environment variables i.e.
`CLIMATECONTROL_SECTION1_FROM_JSON_CONTENT='{"v1": 1, "v2": 2}'`).
- Add inferred settings files and search for them along the directory structure
up to project root (`climatecontrol.core.Climate.inferred_settings_files`).

Changed

- Use fragments as base data structure for building settings map
- Add python 3.7 and 3.8 to CI and update development environment config to 3.8
- Format using [black](https://github.com/psf/black)
- Dissallow setting or deleting objects from settings object (to avoid confusion
when setting the object does not change the settings object after an update)

Deprecated

- Deprecated `implicit_depth` argument in settings object
- Deprecate use of `Settings` class (use `Climate` instead, `Settings` is now an
alias of `Climate`)

Removed

- Remove python 3.5 support

0.7.3

Fixed

- Fix update with bad config leaving the object in a broken state ( 15 )

0.7.2

Fixed

- Fix bug where value of "from_file" variable was logged instead of the file.

Added

- Support for click 7.0

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.