Data validation and settings management using python 3.6 type hinting
Project description
Data validation and settings management using python 3.6 type hinting.
See documentation for more details.
History
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pydantic-0.5.tar.gz
.
File metadata
- Download URL: pydantic-0.5.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 774262487288f73e499500f931c33b008987bf49a9726e00fc1db7b9ca7a5818 |
|
MD5 | ac7d4252232a3fdd97fb31b1f571f2b6 |
|
BLAKE2b-256 | 4164f7d1d0f1460ca4c6c25a544fb7496f1f8b2a4c762f09a357348ae55f7657 |
File details
Details for the file pydantic-0.5-py36-none-any.whl
.
File metadata
- Download URL: pydantic-0.5-py36-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3.6
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93423862a6e7b6550f41f03c00b882852cb4d7f9271b8719aa31026591e52ab0 |
|
MD5 | 5d704ed0bc1a3841555b65a6554fd9cf |
|
BLAKE2b-256 | 04b53ad17296adab10961efc742f62ee0090585fdf58add47d23dba79711f563 |