Pydantic-yaml

Latest version: v1.4.0

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

Scan your dependencies

Page 5 of 6

0.5.0

**If this release breaks your code, please [create an issue here](https://github.com/NowanIlfideme/pydantic-yaml/issues/new).**

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.

What's Changed
* Full rewrite to use Mixin classes by NowanIlfideme in https://github.com/NowanIlfideme/pydantic-yaml/pull/9


**Full Changelog**: https://github.com/NowanIlfideme/pydantic-yaml/compare/v0.4.3...v0.5.0

0.4.3

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

0.4.2

- Fixed `py.typed` not being included in package data.
- Added mypy to test suite.
- Fixed new errors found by mypy. 😄

0.4.1

Thanks to Tonkonozhenko for contributing the PR 4

0.4.0

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.

0.3.0

Changes:
- Removed unsupported options (old `ruamel.yaml` and `python==3.6`)
- Modernized packaging mechanism (via `setup.cfg`)
- Added unit tests.
- Added pretty badges. 😃

Page 5 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.