goodconf
goodconf copied to clipboard
Transparently load variables from environment or JSON/YAML/TOML file.
We can currently generate `yml`, `json`, and `toml`, but `.env` style files are probably the most popular option for storing environment variables for local development. It'd be nice if we...
If you happen to call `config.load()` twice, the latter fails to read from default_files. This leads to difficult to troubleshoot issues like: ``` pydantic_core._pydantic_core.ValidationError: 1 validation error for AppConfig SECRET_KEY...
The custom `initial` kwarg is a problem ``` /usr/local/lib/python3.11/site-packages/pydantic/fields.py:814: PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 'initial'). Deprecated in...