pydantic-core

Core validation logic for pydantic written in rust

MIT License

Stars
1.2K

Bot releases are visible (Hide)

pydantic-core - v0.5.3 2022-10-20

Published by samuelcolvin about 2 years ago

  • Change how arguments are defined to use {'__args__': (...), '__kwargs__': {}}, and allow simple list/tuple for just args

Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.5.2...v0.5.3

pydantic-core - v0.5.2 2022-10-18

Published by samuelcolvin about 2 years ago

What's Changed

  • Add IsSubclassValidator #301
  • add name to function validators #303

Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.5.1...v0.5.2

pydantic-core - v0.5.1 2022-10-18

Published by samuelcolvin about 2 years ago

What's Changed

  • support future and past dates and datetimes #295
  • Tweak type annotations for PydanticCustomError and PydanticKindError 7029215d6fda09bfc97fc06ec783952a365ef2bc
  • Ci tweaks #297
  • combine literal_single_error and literal_multiple_error #298
  • Allow Sequence and tuple to is_instance validator #299
  • fix repr for single literals #300

Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.5.0...v0.5.1

pydantic-core - v0.5.0 2022-10-16

Published by samuelcolvin about 2 years ago

  • fix float multiple_of calc #286
  • python types for ErrorKind #289
  • add CustomErrorValidator #290
  • Add JsonValidator #291
  • Literal[None] -> NoneValidator 5a65c1101c58b3c0a3fbd37b65da859529c7080a
  • correct use of StrValidator and StrConstrainedValidator e671f3364d0dd46d5c4fdd843965dadad67d57bc
  • Schema extra #292
  • add json_function to IsInstanceValidator #293
  • Logic for instances of subclasses of strings #294

Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.4.0...v0.5.0

pydantic-core - v0.4.0 2022-10-13

Published by samuelcolvin about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.3.1...v0.4.0

pydantic-core - v0.3.1 2022-09-30

Published by samuelcolvin about 2 years ago

  • Fix strip whitespace ordering by @huyta55 in #264
  • Core schema improvements #265

Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.3.0...v0.3.1

pydantic-core - v0.3.0 2022-09-29

Published by samuelcolvin about 2 years ago

  • Rename core #248
  • stop allowing str as basic input to validators #256
  • Chain type #255
  • limit sdist contents #257
  • add validator_instance to function validators #258
  • replace *_items -> *_length #259
  • use cls for is-instance and new-class #261
  • build binaries for 3.11 #247
  • helper functions for creating schemas #263
  • custom errors on union and tagged-union #262

Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.2.1...v0.3.0

pydantic-core - v0.2.1 2022-09-24

Published by samuelcolvin about 2 years ago

  • Improve asking/answering questions #244
  • add call_after_init to new-class validators #245
  • add slots to SchemaValidator.__repr__ #246

Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.2.0...v0.2.1

pydantic-core - v0.2.0 2022-09-22

Published by samuelcolvin about 2 years ago

  • add tests for validation context #220
  • feat: allow fields to be frozen and add strict + context support to validate_assignment by @PrettyWood in #221
  • rename GenericListLike into GenericCollection + improve coverage by @PrettyWood in #222
  • update pyodide to 0.21.0 release version by @messense in #226
  • build wheels with stable rust #227
  • Support dict_items for list like fields by @ytmimi in #225
  • Fix coverage export #233
  • add flag to allow only finite float values by @PrettyWood in #228
  • bump pyo3 to 0.17.1 by @PrettyWood in #236
  • rename _types to be public by @MatthijsKok in #240
  • Default validator #242
  • Only use RecursiveContainerValidator when necessary #243

Full Changelog: https://github.com/pydantic/pydantic-core/compare/v0.1.0...v0.2.0

pydantic-core - v0.1.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.

Badges
Extracted from project README
CI Coverage pypi versions license
Related Projects