Skip to main content

Data validation and settings management using python 3.6 type hinting

Project description

BuildStatus Coverage pypi

Data validation and settings management using python 3.6 type hinting.

See documentation for more details.

History

v0.6.3 (2017-11-XX)

  • fix direct install without README.rst present

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

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

pydantic-0.6.3.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

pydantic-0.6.3-py36-none-any.whl (21.9 kB view details)

Uploaded Python 3.6

File details

Details for the file pydantic-0.6.3.tar.gz.

File metadata

  • Download URL: pydantic-0.6.3.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pydantic-0.6.3.tar.gz
Algorithm Hash digest
SHA256 eb630485056d168ea779b36d07c2f6aa0399f0c99f93df15eb8d2d2172bcdc77
MD5 bc65acbcaf842f521848c3487e2f53da
BLAKE2b-256 d13cb0cf15e51da74d01e187b4008182b1dc58a3101c32bcfb40ecafbdf840d7

See more details on using hashes here.

File details

Details for the file pydantic-0.6.3-py36-none-any.whl.

File metadata

File hashes

Hashes for pydantic-0.6.3-py36-none-any.whl
Algorithm Hash digest
SHA256 b952a5f569c228e09e1036d365b751a759f25898a2b012dc9e31dca0de411cf6
MD5 6153c84f86aec13903b0c6b237eab6eb
BLAKE2b-256 cfda03b2a945665ea76f0d4420d438450e1850d0a853bd00a9e9663f6812de6c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page