Goodconf

Latest version: v6.0.0

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

Scan your dependencies

Page 1 of 4

6.0.0

========================

- **Backwards Incompatible Release**

- Removed the ``_config_file`` attribute from ``GoodConf``.
If you previously set this attribute, you are no longer be able to do so.
- Support reading TOML files via ``tomllib`` on Python 3.11+
- Update Markdown generation, so that output matches v4 output

5.0.0

========================

- **Backwards Incompatible Release**

- Removed official support for Python 3.8
- upgraded to pydantic2

To upgrade from goodconf v4 to goodconf v5:

- If subclassing ``GoodConf``, replace uses of ``class Config`` with ``model_config``.

For example goodconf v4 code like this:

.. code:: python

from goodconf import GoodConf

class AppConfig(GoodConf):
"Configuration for My App"
DATABASE_URL: PostgresDsn = "postgres://localhost:5432/mydb"

class Config:
default_files = ["/etc/myproject/myproject.yaml", "myproject.yaml"]

config = AppConfig()

should be replaced in goodconf v5 with:

.. code:: python

from goodconf import GoodConf

class AppConfig(GoodConf):
"Configuration for My App"
DATABASE_URL: PostgresDsn = "postgres://localhost:5432/mydb"

model_config = {"default_files": ["/etc/myproject/myproject.yaml", "myproject.yaml"]}

config = AppConfig()

4.0.3

========================

- Release from GitHub Actions

4.0.2

========================

- Another markdown output fix
- Fix for markdown generation generation on Python 3.8 & 3.9

4.0.1

========================

- Fix trailing whitespace in markdown output

4.0.0

========================

- Removed errant print statement
- Removed official support for Python 3.7
- Added support for Python 3.12

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.