pydantic-settings
pydantic-settings copied to clipboard
Settings management using pydantic
Hey, In this issue, I'd like to propose a general improvement to the pydantic-settings, especially the handling of the sources. If it's agreeable, will create a PR. The current implementation...
### Initial Checks - [X] I have searched GitHub for a duplicate issue and I'm sure this is something new - [X] I have searched Google & StackOverflow for a...
### Checks * [x] I added a descriptive title to this issue * [x] I have searched (google, github) for similar issues and couldn't find anything * [x] I have...
### Initial Checks - [X] I have searched Google & GitHub for similar requests and couldn't find anything - [X] I have read and followed [the docs](https://pydantic-docs.helpmanual.io) and still think...
### Initial Checks - [X] I have searched Google & GitHub for similar requests and couldn't find anything - [X] I have read and followed [the docs](https://pydantic-docs.helpmanual.io) and still think...
very similar to https://github.com/pydantic/pydantic/issues/2284 I would love to be able to leverage built-in settings configuration, but in order to do that, I need support for both ConfigMaps and Secrets i...
As mentioned in https://github.com/pydantic/pydantic/pull/4492, I have been using https://github.com/danields761/pydantic-settings/ mostly for its `with_attrs_docs` decorator. (That being said, I wanted to link to its documentation here, but cannot find it…) It...
https://github.com/pydantic/pydantic/issues/1676 --- ## Feature Request My use case is I'm reading a toml config file and passing what is read directly to the model constructor. However, I have no way...
Typing issues were brought to light when attempting to override `BaseSettings.settings_customise_sources()` as per [the documentation](https://docs.pydantic.dev/latest/concepts/pydantic_settings/#parsing-environment-variable-values:~:text=You%20may%20also%20populate%20a%20complex%20type%20by%20providing%20your%20own%20source%20class.). On python 3.8, this raised the `TypeError: 'type' object is not subscriptable` exception from [this...
I have the following code ```python from pydantic import AliasChoices from pydantic import Field from pydantic import RedisDsn from pydantic_settings import BaseSettings class Settings(BaseSettings): redis_dsn: RedisDsn = Field("redis://localhost:6379") def model_dump(self):...