Releases: pydantic/pydantic-settings
Releases · pydantic/pydantic-settings
v2.3.1
What's Changed
- Fix a regression in parsing env value for nested dict by @hramezani in #301
Full Changelog: v2.3.0...v2.3.1
v2.3.0
What's Changed
- Add environment parsing support for enums. by @kschwab in #252
- Improve
explode_env_vars
for better dict handling by @hramezani in #261 - add
PyprojectTomlConfigSettingsSource
by @ITProKyle in #255 - Fix broken link in AliasChoices class by @keenranger in #271
- Update Pydantic by @hramezani in #273
- fix: superfluous deep env conflicts with non-dict model leaf by @diefans in #276
- fix: a second level of environment nesting expected a dict by @diefans in #281
- Fix an issue when inner types of a discriminated union with a callable discriminator were not correctly identified as complex. by @jenskeiner in #285
- Fix a bug when we have case insentive field in nested model by @hramezani in #294
- Add CLI Settings Source by @kschwab in #214
New Contributors
- @ITProKyle made their first contribution in #255
- @keenranger made their first contribution in #271
- @diefans made their first contribution in #276
- @jenskeiner made their first contribution in #285
Full Changelog: v2.2.1...v2.3.0
v2.2.1
What's Changed
- respect
env_prefix
whenextra
allowed by @zzstoatzz in #238 - Replace tomlkit with tomli and remove toml_file_encoding config by @hramezani in #236
- Revert "Allow nested env var source to override nested init source." by @hramezani in #243
New Contributors
- @zzstoatzz made their first contribution in #238
Full Changelog: v2.2.0...v2.2.1
v2.2.0
What's Changed
- Fix documentation and update pydantic and pydantic-core dependancies by @Xunop in #194
- Correct a typo in README.md by @felixonmars in #195
- feat: ignore empty env vars by @niventc in #198
- Allow nested env var source to override nested init source. by @kschwab in #204
- Fix typo in explode_env_vars() docstring by @paytonward6 in #207
- Add support for parsing environment "None" strings to None. by @kschwab in #206
- Ensure extra='forbid' is enforced in DotEnvSettingsSource when env_prefix is specified by @kjithin in #218
- Fix for JSON on optional nested types. by @kschwab in #217
- Improve docs by @hramezani in #225
- feat: adding json, yaml and toml sources by @Smixi in #211
- Fix dotenv source extra values parsing provided in dotenv file by @hramezani in #221
- Update requirements by @hramezani in #233
- Prepare release 2.2.0 by @hramezani in #232
New Contributors
- @Xunop made their first contribution in #194
- @felixonmars made their first contribution in #195
- @niventc made their first contribution in #198
- @kschwab made their first contribution in #204
- @paytonward6 made their first contribution in #207
- @kjithin made their first contribution in #218
- @Smixi made their first contribution in #211
Full Changelog: v2.1.0...v2.2.0
v2.1.0
What's Changed
- Fix code for mentioned variable in Settings Management by @ikosmala in #146
- Add docs to explain env_prefix does not apply to field alias by @hramezani in #147
- Remove old code relatd to optional dotenv by @hramezani in #155
- Fix broken links by @hramezani in #160
- Add note about nested model should inherit BaseModel by @hramezani in #165
- Fix #166 - Add docs for validating default values by @stinovlas in #168
- Update links by @hramezani in #170
- Fix typo at
Environment variable names
section by @iagorrr in #173 - resolve nested code fence line numbering by @johndutchover in #182
- Confirm Python 3.12 support by @hramezani in #174
- Drop Python 3.7 by @hramezani in #188
New Contributors
- @ikosmala made their first contribution in #146
- @stinovlas made their first contribution in #168
- @iagorrr made their first contribution in #173
- @johndutchover made their first contribution in #182
Full Changelog: v2.0.3...v2.1.0
v2.0.3
What's Changed
- Fix
_replace_field_names_case_insensitively
precondition inconsistency by @AlexVndnblcke in #130 - Check union args to don't consider Optional fields as complex Union by @hramezani in #138
New Contributors
- @AlexVndnblcke made their first contribution in #130
Full Changelog: v2.0.2...v2.0.3
v2.0.2
What's Changed
- dotenv no error w/ an env key shorter than prefix (#106) by @jvllmr in #107
- Add installation instruction to doc by @hramezani in #111
- Add support for adding config through class kwargs by @hramezani in #112
- Use
pydantic_settings.SettingsConfigDict
instead ofpydantic.ConfigDict
in tests by @hramezani in #119 - Add documentation link to README.md by @hramezani in #121
- Fix error when no secret file provided for a complex field. by @hramezani in #118
- Fix a bug when using BaseSettings with RootModel by @hramezani in #120
- Fix typo (
fiel_value
->field_value
) by @kkirsche in #123 - fix typos in pydantic settings module by @kkirsche in #124
- Add documentation about compatibility with pydantic 1.x BaseSettings when using dotenv by @SthPhoenix in #127
- Separate decoding of complex values into specific method by @dbendall in #128
New Contributors
- @jvllmr made their first contribution in #107
- @kkirsche made their first contribution in #123
- @SthPhoenix made their first contribution in #127
- @dbendall made their first contribution in #128
Full Changelog: v2.0.1...v2.0.2
v2.0.1
What's Changed
- pydantic V2 is released by @davidhewitt in #99
- Add explicit type hint to
BaseSettings.model_config
by @Viicos in #97 - Improve
DotenvType
to acceptstr
by @hramezani in #96 - Use config values as default in
PydanticBaseEnvSettingsSource.__init__
by @hramezani in #100 - Update to Pydantic 2.0.1 by @hramezani in #101
- Prepare for release 2.0.1 by @hramezani in #105
New Contributors
- @davidhewitt made their first contribution in #99
Full Changelog: v2.0.0...v2.0.1
v2.0.0
What's Changed
- Add
mkdocs.yml
to run mkdocs locally by @Kludex in #67 - Add documentation to pyproject by @Kludex in #69
- Remove unused plugins from
mkdocs.yml
by @Kludex in #70 - Improve docstrings by @hramezani in #72
- ✨ Make
SettingsConfigDict
public by @Kludex in #75 - Add enhancements to the
index.md
by @Kludex in #73 - Tweak sources to have
case_sensitive
andenv_prefix
usable as args by @Viicos in #76 - Update pydantic to 2.0b3 by @hramezani in #83
- Add default value to source classes init params by @hramezani in #82
- Add Pydantic Json field support by @hramezani in #79
- docs: fix link with relative by @m9810223 in #85
- Fix code block formatting by @hramezani in #89
- Add
assignees
list to the hooky config by @hramezani in #92
New Contributors
Full Changelog: v2.0b1...v2.0.0
v2.0b1
What's Changed
- Format docs for import by @tpdorsey in #48
- Fix fetching env values for nested bytes field by @hramezani in #52
- Uprev pydantic to v2.0a4 by @hramezani in #55
- Update pydantic and pydantic-core dependancies by @hramezani in #58
- Add pytest-examples and make examples in docs testable by @hramezani in #56
- Use updated FieldInfo from pydantic/pydantic#5800 by @dmontagu in #59
- Update dependencies by @adriangb in #62
- Update pydantic to 2.0b1 by @hramezani in #64
- Prepare for 2.0a4 release by @hramezani in #65
New Contributors
Full Changelog: v2.0a4...v2.0b1