goodconf icon indicating copy to clipboard operation
goodconf copied to clipboard

Transparently load variables from environment or JSON/YAML/TOML file.

Results 13 goodconf issues
Sort by recently updated
recently updated
newest added

Right now we can only `load` the settings, but it would be nice to have a `save` method to save changed configuration values. It should keep the user comments on...

This is more of the "pydantic way" to do things and restores some functionality that was broken from the `BaseSettings` class (see #10 and #9) It is a backwards incompatible...

Hi, I'm trying to use the [`BaseSettings` `env_prefix` `Config` property](https://pydantic-docs.helpmanual.io/usage/settings/#parsing-environment-variable-values) to preprend a string on the environment variables without success. A simple snippet that shows the desired behaviour is: ```python...

Hi, first thanks for your awesome project :) To build the test cases, I want to create a `GoodConf` instance with some values that are different from the default, for...

Hi! when loading `GoodConf` I'm getting this deprecation warning error: ``` src/test.py:7: in from goodconf import GoodConf ../../.local/share/virtualenvs/test/lib/python3.9/site-packages/goodconf/__init__.py:12: in from pydantic import BaseSettings, PrivateAttr ../../.local/share/virtualenvs/test/lib/python3.9/site-packages/pydantic/__init__.py:374: in __getattr__ return _getattr_migration(attr_name) ../../.local/share/virtualenvs/test/lib/python3.9/site-packages/pydantic/_migration.py:296:...

updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.1 → v0.7.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.1...v0.7.1) - [github.com/asottile/pyupgrade: v3.15.0 → v3.19.0](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.19.0)

Interesting docs to work on this: - [Migration guide](https://docs.pydantic.dev/2.6/migration/)

Pydantic 2 made a lot of changes and some of them don't translate well.

help wanted

## Description - Refactor `generate_toml()` to recursively traverse the various input fields, generating TOML list and tables to contain nested classes and list of other elements, until a base type...

Hi and thanks for this project! I am slowly migrating my configuration management to this wonderful library. I would like to generate a `yaml` or `toml` configuration file, but I...

enhancement
question