Skip to main content

pydantic

BuildStatus Coverage pypi

Data validation and settings management using python 3.6 type hinting.

See documentation for more details.

History

v0.6.2 (2017-11-13)

  • errors for invalid validator use

  • safer check for complex models in Settings

v0.6.1 (2017-11-08)

  • prevent duplicate validators, #101

  • add always kwarg to validators, #102

v0.6.0 (2017-11-07)

  • assignment validation #94, thanks petroswork!

  • JSON in environment variables for complex types, #96

  • add validator decorators for complex validation, #97

  • depreciate values(...) and replace with .dict(...), #99

v0.5.0 (2017-10-23)

  • add UUID validation #89

  • remove index and track from error object (json) if they’re null #90

  • improve the error text when a list is provided rather than a dict #90

  • add benchmarks table to docs #91

v0.4.0 (2017-07-08)

  • show length in string validation error

  • fix aliases in config during inheritance #55

  • simplify error display

  • use unicode ellipsis in truncate

  • add parse_obj, parse_raw and parse_file helper functions #58

  • switch annotation only fields to come first in fields list not last

v0.3.0 (2017-06-21)

  • immutable models via config.allow_mutation = False, associated cleanup and performance improvement #44

  • immutable helper methods construct() and copy() #53

  • allow pickling of models #53

  • setattr is removed as __setattr__ is now intelligent #44

  • raise_exception removed, Models now always raise exceptions #44

  • instance method validators removed

  • django-restful-framework benchmarks added #47

  • fix inheritance bug #49

  • make str type stricter so list, dict etc are not coerced to strings. #52

  • add StrictStr which only always strings as input #52

v0.2.1 (2017-06-07)

  • pypi and travis together messed up the deploy of v0.2 this should fix it

v0.2.0 (2017-06-07)

  • breaking change: values() on a model is now a method not a property, takes include and exclude arguments

  • allow annotation only fields to support mypy

  • add pretty to_string(pretty=True) method for models

v0.1.0 (2017-06-03)

  • add docs

  • add history

Metadata

Release files for pydantic 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydantic 0.6.2
File Size Uploaded Provenance Actions
pydantic-0.6.2.tar.gz 16.1 kB Without provenance Details for pydantic-0.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydantic 0.6.2
File Interpreter ABI Platform Actions
pydantic-0.6.2-py36-none-any.whl Python 3.6 none any Details for pydantic-0.6.2-py36-none-any.whl

Total release size: 37.9 kB

Release files / pydantic-0.6.2.tar.gz

Download URL pydantic-0.6.2.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bab5826ccb1e2f7db908957882e388b418334ea0338ba7cf464f5f1da289962d
BLAKE2b-256 checksum
How to use checksums
b1498f0bbd245f303ab31c6915ba56f8ceff1b407f5f26cb0979a9aaf96b1956
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pydantic-0.6.2-py36-none-any.whl

Download URL pydantic-0.6.2-py36-none-any.whl
Size 21.8 kB
Tags Python 3.6
SHA-256 checksum
How to use checksums
5b3a5a021282445708dd32665eb3394d18374a05d42605e80eacb4109a0b1c87
BLAKE2b-256 checksum
How to use checksums
0b339358cc198e0e0b03ba9ee750439e9ce9154db035c38b76fe5f6fea9ee2a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pydantic 0.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page