Core validation logic for pydantic written in rust
MIT License
Bot releases are visible (Hide)
Published by samuelcolvin about 2 years ago
{'__args__': (...), '__kwargs__': {}}
, and allow simple list/tuple for just argsFull Changelog: https://github.com/pydantic/pydantic-core/compare/v0.5.2...v0.5.3
Published by samuelcolvin about 2 years ago
IsSubclassValidator
#301Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.5.1...v0.5.2
Published by samuelcolvin about 2 years ago
PydanticCustomError
and PydanticKindError
7029215d6fda09bfc97fc06ec783952a365ef2bcliteral_single_error
and literal_multiple_error
#298Sequence
and tuple
to is_instance
validator #299Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.5.0...v0.5.1
Published by samuelcolvin about 2 years ago
multiple_of
calc #286ErrorKind
#289CustomErrorValidator
#290JsonValidator
#291Literal[None]
-> NoneValidator
5a65c1101c58b3c0a3fbd37b65da859529c7080aStrValidator
and StrConstrainedValidator
e671f3364d0dd46d5c4fdd843965dadad67d57bcjson_function
to IsInstanceValidator
#293Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.4.0...v0.5.0
Published by samuelcolvin about 2 years ago
outer_location
argument to ValidatorCallable
by @samuelcolvin in https://github.com/pydantic/pydantic-core/pull/277
is_instance
JSON support by @samuelcolvin in https://github.com/pydantic/pydantic-core/pull/278
JsonType
copy by @samuelcolvin in https://github.com/pydantic/pydantic-core/pull/279
deque
input to list, tuple etc., change how lengths are validated by @samuelcolvin in https://github.com/pydantic/pydantic-core/pull/275
PydanticOmit
exception by @samuelcolvin in https://github.com/pydantic/pydantic-core/pull/282
Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.3.1...v0.4.0
Published by samuelcolvin about 2 years ago
Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.3.0...v0.3.1
Published by samuelcolvin about 2 years ago
validator_instance
to function validators #258*_items
-> *_length
#259cls
for is-instance
and new-class
#261union
and tagged-union
#262Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.2.1...v0.3.0
Published by samuelcolvin about 2 years ago
call_after_init
to new-class
validators #245slots
to SchemaValidator.__repr__
#246Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.2.0...v0.2.1
Published by samuelcolvin about 2 years ago
frozen
and add strict
+ context
support to validate_assignment
by @PrettyWood in #221GenericListLike
into GenericCollection
+ improve coverage by @PrettyWood in #222dict_items
for list like fields by @ytmimi in #225_types
to be public by @MatthijsKok in #240RecursiveContainerValidator
when necessary #243Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.1.0...v0.2.0
Published by samuelcolvin about 2 years ago
And so it begins...
You can install and run pydantic-core with
pip install pydantic-core
python -c 'from pydantic_core import SchemaValidator;print(SchemaValidator("int").validate_python("123"))'
You can also run units test in your browser by following this link - this will download the zip archive of this release, install the was32 wheel attached to this release, and run unit tests.
Please create an issue if you find a problem installing or running the package.