NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #2641 most downloaded on PyPI
YAML reading/writing for Pydantic models
Last release 3 months ago
21 Jun 2026
Release timing varies
gaps range from 9 days to 8 months
Nearly every release is documented
notes for 35 of 35 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
39 releases · first in 2020
One column per quarter.
Accessing model_fields on object is deprecated by @petri in #311
model_fields access on objects by @petri in #311uv for dependency and env management #323Full Changelog: v1.6.0...v1.7.0
Fixed deprecation warning with accessing model_fields . See #311
model_fields. See #311The other big thing that changed (why alpha release) is switching to uv for the backend.
Full Changelog: v1.6.0...v1.6.1-alpha.1
Fully releasing what was available as 1.6.0-alpha.1 previously, with documented features.
Fully releasing what was available as 1.6.0-alpha.1 previously, with documented features.
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v1.5.1...v1.6.0
Feature: Save Pydantic model docstrings and field descriptions by @NowanIlfideme in https://github.com/NowanIlfideme/pydantic-yaml/pull/252
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v1.5.1...v1.6.0-alpha.1
Minor bumps for helper libraries by @NowanIlfideme in https://github.com/NowanIlfideme/pydantic-yaml/pull/251
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v1.5.0...v1.5.1
Full Changelog: v1.5.0...v1.5.1
Please note: The next major release (v2.0.0) of pydantic-yaml will not support Pydantic v1.
Please note: The next major release (v2.0.0) of pydantic-yaml will not support Pydantic v1.
ruamel.yaml is 0.17.0, since 0.16 doesn't support the newest Python versions. 0.18.x is tested and seems to work fine.Typing.ForwardRef issue).Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v1.4.0...v1.5.0
Please note: The next major release (v2.0.0) of pydantic-yaml will not support Pydantic v1.
ruamel.yaml is 0.17.0, since 0.16 doesn't support the newest Python versions. 0.18.x is tested and seems to work fine.Typing.ForwardRef issue).Full Changelog: v1.4.0...v1.5.0
Hello, this has been delayed for a while - sorry for the delay to everyone using pydantic-yaml.
Hello, this has been delayed for a while - sorry for the delay to everyone using pydantic-yaml.
Highlights:
Chores:
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v1.3.0...v1.4.0
Hello, this has been delayed for a while - sorry for the delay to everyone using pydantic-yaml.
Highlights:
Chores:
Full Changelog: v1.3.0...v1.4.0
Support Pydantic v2 backport for v1 functionality by @NowanIlfideme in https://github.com/NowanIlfideme/pydantic-yaml/pull/152
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v1.2.1...v1.3.0
Full Changelog: v1.2.1...v1.3.0
NOTE: if you haven't pinned ruamel-yaml you may have errors; make sure to pin ruamel-yaml~=0.17.40 in that case.
NOTE: if you haven't pinned ruamel-yaml you may have errors; make sure to pin ruamel-yaml~=0.17.40 in that case.
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v1.2.0...v1.2.1
NOTE: if you haven't pinned ruamel-yaml you may have errors; make sure to pin ruamel-yaml~=0.17.40 in that case.
Full Changelog: v1.2.0...v1.2.1
Since Python 3.7 has entered end-of-life and many dependencies (including mypy) are no longer supporting it, pydantic-yaml won't support it either. Th
Since Python 3.7 has entered end-of-life and many dependencies (including mypy) are no longer supporting it, pydantic-yaml won't support it either. The latest version to support Python 3.7 is 1.1.3.
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v1.1.3...v1.2.0
Make to_yaml_file consider options when writing to file path by @aeisenbarth in https://github.com/NowanIlfideme/pydantic-yaml/pull/96
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v1.1.2...v1.1.3
Hotfix: Fix indenting when dumping to the file. by @NowanIlfideme in https://github.com/NowanIlfideme/pydantic-yaml/pull/104
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v1.1.1...v1.1.2
Fixes issue #85 by @Tobychev in https://github.com/NowanIlfideme/pydantic-yaml/pull/86
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v1.1.0...v1.1.1
Update dumper.py by @Tobychev in https://github.com/NowanIlfideme/pydantic-yaml/pull/81
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v1.0.0...v1.1.0
Hi users of pydantic-yaml! I rewrote it to be much more maintainable in the short- and long-term.
Hi users of pydantic-yaml! I rewrote it to be much more maintainable in the short- and long-term.
In the short term: Pydantic V2 is supported, custom JSON encoders will also be used for YAML, and the API is simplified.
In the long term: Pydantic V2 API assumes external dump/load logic, rather than model.yaml(), so the API rewrite was coming anyways. And later we can allow using a "custom YAML engine". Maybe in v2.0.0? 😉
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.11.2...v1.0.0
Bump ruff from 0.0.262 to 0.0.263 by @dependabot in https://github.com/NowanIlfideme/pydantic-yaml/pull/52
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v1.0.0-alpha.1...v1.0.0-alpha.2
Rewrote pydantic-yaml to be much more maintainable in the short- and long-term.
Rewrote pydantic-yaml to be much more maintainable in the short- and long-term.
In the short term: Pydantic V2 is supported, custom JSON encoders will also be used for YAML, and so on.
In the long term: Pydantic V2 API assumes external dump/load logic, rather than model.yaml(), so the API rewrite was coming anyways. And later we can allow using a "custom YAML engine". 😉
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.11.2...v1.0.0-alpha.1
Migrate to pyproject.toml and src/ based files by @NowanIlfideme in https://github.com/NowanIlfideme/pydantic-yaml/pull/40
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.11.1...v0.11.2
Making semver optional by @mustafasoylu in https://github.com/NowanIlfideme/pydantic-yaml/pull/39
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.10.0...v0.11.0
No new functionality, but minor bump as it can affect people pinned to an old (<1.9.x) version of Pydantic.
No new functionality, but minor bump as it can affect people pinned to an old (<1.9.x) version of Pydantic.
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.9.0...v0.10.0
Fix mypy check: Implicit Optional by @NowanIlfideme in https://github.com/NowanIlfideme/pydantic-yaml/pull/36
pydantic-yaml without extras, for some reason.Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.8.1...v0.9.0
Fix: Signature mismatch for Pydantic internals by @NowanIlfideme in https://github.com/NowanIlfideme/pydantic-yaml/pull/31
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.8.0...v0.8.1
Update yaml sort default to use field order by @NowanIlfideme in https://github.com/NowanIlfideme/pydantic-yaml/pull/27
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.7.1...v0.8.0
Added ability to customize dumping order (i.e. disable alphanumeric sorting) by @NowanIlfideme in https://github.com/NowanIlfideme/pydantic-yaml/pull/
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.7.0...v0.7.1
Fix: Generalize YAML libs by @NowanIlfideme in https://github.com/NowanIlfideme/pydantic-yaml/pull/22
Honestly, supporting further developments with multi-library support have become cumbersome as ruamel.yaml moves forward. This release shouldn't break anything, but it might as users might have some uses not covered by current test cases. If something breaks, please create an issue and I'll solve ASAP. You can then downgrade to 0.6.* as there is no difference in functionality.
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.6.3...v0.7.0
Added dependabot to nag me about updates! by @NowanIlfideme in https://github.com/NowanIlfideme/pydantic-yaml/pull/15
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.6.1...v0.6.3
This release adds docs, hosted on readthedocs.org - though it's currently just the README.md file in a prettier form, there's now a way to easily impr
This release adds docs, hosted on readthedocs.org - though it's currently just the README.md file in a prettier form, there's now a way to easily improve the docs.
Development status is now set to "5 - Production/Stable", meaning this should be stable enough for everyday use. If you have any issues - please raise them, I depend on this library for work, and so have a vested interest in keeping it bug-free. 😉
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.6.0...v0.6.1
This release adds compatibility with Pydantic 1.9 and ensures compatibility with Python 3.10 However, a minimum version of Pydantic was set at 1.7.4 W
This release adds compatibility with Pydantic 1.9 and ensures compatibility with Python 3.10
However, a minimum version of Pydantic was set at 1.7.4
We also now more explicitly check python and Pydantic versions.
We added some mypy fixes.
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.5.2...v0.6.0
Limited Pydantic version <1.8 (currently broken). by @Anatoly-Makarevich in https://github.com/NowanIlfideme/pydantic-yaml/pull/11
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.5.1...v0.5.2
This version adds support for Pydantic's SecretStr and SecretBytes classes.
This version adds support for Pydantic's SecretStr and SecretBytes classes.
You can now dump them to YAML (they will be "**********" instead of their actual values). However, the "json_encoders" trick does not currently work - it's not straightforward to implement a similar thing for YAML, either by hooking into json_encoders or by defining our own yaml_encoders config.
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.5.0...v0.5.1
This release deprecates YamlEnum, though users will just be nagged to switch to YamlStrEnum for now until the next major release (or until I remember,…
If this release breaks your code, please create an issue here.
This rewrites pydantic_yaml to be based on the YamlModelMixin class. YamlModel is still available, but is now just a subclass of YamlModelMixin and BaseModel. This gives a lot more flexibility to the user. 😄
This also adds some pretty neat basic type classes:
YamlStr and YamlInt are base classes for YAML-enabled string and int subclasses.YamlStrEnum and YamlIntEnum are enum superclasses that remove a lot of the strange edge cases with YAML serialization (and custom enum types).This release deprecates YamlEnum, though users will just be nagged to switch to YamlStrEnum for now until the next major release (or until I remember, whichever comes later).
The release has been tested against old tests, which have also been slightly improved. However, since the tests weren't extremely extensive, I assume this may break something for some users.
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.4.3...v0.5.0
Re-publishing release, for some reason it didn't publish.
Re-publishing release, for some reason it didn't publish.
Full Changelog: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.4.2...v0.4.3
Fixed py.typed not being included in package data.
py.typed not being included in package data.Thanks to @Tonkonozhenko for contributing the PR #4
Thanks to @Tonkonozhenko for contributing the PR #4
Improved user experience, by parsing YAML by default from YamlModel. Note that JSON is a subset of YAML, so YAML should be able to parse JSON (it's sl
Improved user experience, by parsing YAML by default from YamlModel. Note that JSON is a subset of YAML, so YAML should be able to parse JSON (it's slower, but config files are too small to make a difference).
Added VersionedYamlModel that can be used for versioning config files, including requiring minimum or maximum versions.
Added some more tests to CI.
Removed unsupported options (old ruamel.yaml and python==3.6)
Changes:
ruamel.yaml and python==3.6)setup.cfg)Set dumping to be safe by default.
Set dumping to be safe by default.
Allows module import, because version is now included with the package...
Allows module import, because version is now included with the package...
This is the initial release of pydantic-yaml to pypi. There is currently no automated testing (or even proper version-fixing for dependencies, or auto
This is the initial release of pydantic-yaml to pypi. There is currently no automated testing (or even proper version-fixing for dependencies, or auto-formatting, or ...); perhaps this will change in the future.
Your coding agent can read these notes before it upgrades. Set up the MCP server →