Pydantic-settings

Latest version: v2.8.1

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

Scan your dependencies

Page 1 of 5

2.8.1

What's Changed
* Fix for init source kwarg alias resolution. by kschwab in https://github.com/pydantic/pydantic-settings/pull/550
* Revert usage of positional only argument in `BaseSettings.__init__` by Viicos in https://github.com/pydantic/pydantic-settings/pull/557
* Revert use of `object` instead of `Any` by Viicos in https://github.com/pydantic/pydantic-settings/pull/559
* Prepare release 2.8.1 by hramezani in https://github.com/pydantic/pydantic-settings/pull/558


**Full Changelog**: https://github.com/pydantic/pydantic-settings/compare/v2.8.0...v2.8.1

2.8.0

What's Changed
* CLI support for optional and variadic positional args by kschwab in https://github.com/pydantic/pydantic-settings/pull/519
* Improve env_prefix config doc by hramezani in https://github.com/pydantic/pydantic-settings/pull/523
* Add env_nested_max_split setting by gsakkis in https://github.com/pydantic/pydantic-settings/pull/534
* Avoid using `Any` in `BaseSettings` signature to avoid mypy errors by Viicos in https://github.com/pydantic/pydantic-settings/pull/529
* Asynchronous CLI methods in CliApp by KanchiShimono in https://github.com/pydantic/pydantic-settings/pull/533
* Don't explode env vars if env_nested_delimiter is empty by gsakkis in https://github.com/pydantic/pydantic-settings/pull/540
* Prepare release 2.8.0 by hramezani in https://github.com/pydantic/pydantic-settings/pull/541

New Contributors
* gsakkis made their first contribution in https://github.com/pydantic/pydantic-settings/pull/534
* KanchiShimono made their first contribution in https://github.com/pydantic/pydantic-settings/pull/533

**Full Changelog**: https://github.com/pydantic/pydantic-settings/compare/v2.7.1...v2.8.0

2.7.1

What's Changed
* Move preferred alias resolution to private method by kschwab in https://github.com/pydantic/pydantic-settings/pull/507
* Prepare release 2.7.1 by hramezani in https://github.com/pydantic/pydantic-settings/pull/511


**Full Changelog**: https://github.com/pydantic/pydantic-settings/compare/v2.7.0...v2.7.1

2.7.0

What's Changed
* Fix `test_protected_namespace_defaults` with -Wdefault by CyberTailor in https://github.com/pydantic/pydantic-settings/pull/462
* Make tests more robust to the running environment by CyberTailor in https://github.com/pydantic/pydantic-settings/pull/464
* Fix rendering of annotations in code example by Viicos in https://github.com/pydantic/pydantic-settings/pull/470
* Fix alias resolution for default settings source. by kschwab in https://github.com/pydantic/pydantic-settings/pull/468
* Use the class name in the `__repr__` implementations by dlax in https://github.com/pydantic/pydantic-settings/pull/465
* Fix default help text for union of submodels. by kschwab in https://github.com/pydantic/pydantic-settings/pull/472
* Add support for CliMutuallyExclusiveGroup. by kschwab in https://github.com/pydantic/pydantic-settings/pull/473
* Disable abbreviations on internal parser. by kschwab in https://github.com/pydantic/pydantic-settings/pull/477
* Fix Secret field parsing by hramezani in https://github.com/pydantic/pydantic-settings/pull/478
* Fix alias resolution to use preferred key. by kschwab in https://github.com/pydantic/pydantic-settings/pull/481
* Strip annotated when getting submodels during CLI parsing. by kschwab in https://github.com/pydantic/pydantic-settings/pull/490
* Removing return type from the function in test by hramezani in https://github.com/pydantic/pydantic-settings/pull/491
* Relax default protected_namespaces by hramezani in https://github.com/pydantic/pydantic-settings/pull/483
* Add support for CLI kebab case flag. by kschwab in https://github.com/pydantic/pydantic-settings/pull/489
* Change reference of default values validation in documentation by Viicos in https://github.com/pydantic/pydantic-settings/pull/496
* Improve field value parsing by adding `NoDecode` and `ForceDecode` annotations by hramezani in https://github.com/pydantic/pydantic-settings/pull/492
* Fix attribute error on Python 3.9 with typing.Sequence by hramezani in https://github.com/pydantic/pydantic-settings/pull/497
* Prepare release 2.7.0 by hramezani in https://github.com/pydantic/pydantic-settings/pull/499

New Contributors
* CyberTailor made their first contribution in https://github.com/pydantic/pydantic-settings/pull/462
* dlax made their first contribution in https://github.com/pydantic/pydantic-settings/pull/465

**Full Changelog**: https://github.com/pydantic/pydantic-settings/compare/v2.6.1...v2.7.0

2.6.1

What's Changed
* Add Python 3.13 support by hramezani in https://github.com/pydantic/pydantic-settings/pull/450
* Fixes 452 - Adding support for populate_by_name by hozn in https://github.com/pydantic/pydantic-settings/pull/454
* Refactor path_type_label by aberenda-optifino in https://github.com/pydantic/pydantic-settings/pull/458
* Revert "Fix context not passed to field validators bug (417)" by hramezani in https://github.com/pydantic/pydantic-settings/pull/459

New Contributors
* hozn made their first contribution in https://github.com/pydantic/pydantic-settings/pull/454
* aberenda-optifino made their first contribution in https://github.com/pydantic/pydantic-settings/pull/458

**Full Changelog**: https://github.com/pydantic/pydantic-settings/compare/v2.6.0...v2.6.1

2.6.0

What's Changed
* Fix nested model field with alias parsing by hramezani in https://github.com/pydantic/pydantic-settings/pull/400
* Fix PathType typing in case of sequence by just-maiyak in https://github.com/pydantic/pydantic-settings/pull/402
* Add `cli_ignore_unknown_args` config option. by kschwab in https://github.com/pydantic/pydantic-settings/pull/405
* Fix AzureKeyVaultSettingsSource problem in case of field with underscore by hramezani in https://github.com/pydantic/pydantic-settings/pull/415
* Add `cli_flag_prefix_char` config option. by kschwab in https://github.com/pydantic/pydantic-settings/pull/418
* Fix nested model AliasChoices in validation alias by hramezani in https://github.com/pydantic/pydantic-settings/pull/411
* Add CLI App Support by kschwab in https://github.com/pydantic/pydantic-settings/pull/389
* Fix context not passed to field validators bug by hramezani in https://github.com/pydantic/pydantic-settings/pull/417
* Fix a regression in dotenv optional nested field by hramezani in https://github.com/pydantic/pydantic-settings/pull/423
* Put tests for non-default sources in separate files by makukha in https://github.com/pydantic/pydantic-settings/pull/429
* Update nested model partial update docs example. by kschwab in https://github.com/pydantic/pydantic-settings/pull/433
* Add support for suppressing fields from CLI help. by kschwab in https://github.com/pydantic/pydantic-settings/pull/436
* Fix bug in dotenv source when there is env with and without prefix by hramezani in https://github.com/pydantic/pydantic-settings/pull/440
* Prepare release 2.6.0 by hramezani in https://github.com/pydantic/pydantic-settings/pull/444

New Contributors
* just-maiyak made their first contribution in https://github.com/pydantic/pydantic-settings/pull/402

**Full Changelog**: https://github.com/pydantic/pydantic-settings/compare/v2.5.2...v2.6.0

Page 1 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.