pydantic 0.21
pip install pydantic==0.21
Released:
Data validation and settings management using python 3.6 type hinting
Navigation
Unverified details
These details havenot been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author:Samuel Colvin
- Requires: Python >=3.6
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
Data validation and settings management using python type hinting.
Seedocumentation for more details.
History
v0.21.0 (2019-03-15)
fix typo inNoneIsNotAllowedError message,#414 by@YaraslauZhylko
addIPAddress,IPv4Address andIPv6Address types,#333 by@pilosus
v0.20.1 (2019-02-26)
fix type hints ofparse_obj and similar methods,#405 by@erosennin
fix submodel validation,#403 by@samuelcolvin
v0.20.0 (2019-02-18)
fix tests for python 3.8,#396 by@samuelcolvin
Adds fields to thedir method for autocompletion in interactive sessions,#398 by@dgasmith
supportForwardRef (and thereforefrom __future__ import annotations) with dataclasses,#397 by@samuelcolvin
v0.20.0a1 (2019-02-13)
breaking change (maybe): more sophisticated argument parsing for validators, any subset ofvalues,config andfield is now permitted, eg.(cls, value, field),however the variadic key word argument (”**kwargs”)must be calledkwargs,#388 by@samuelcolvin
breaking change: Addsskip_defaults argument toBaseModel.dict() to allow skipping of fields thatwere not explicitly set, signature ofModel.construct() changed,#389 by@dgasmith
Fixextra behaviour for multiple inheritance/mix-ins,#394 by@YaraslauZhylko
v0.19.0 (2019-02-04)
SupportCallable type hint, fix#279 by@proofit404
Fix schema for fields withvalidator decorator, fix#375 by@tiangolo
Addmultiple_of constraint toConstrainedDecimal,ConstrainedFloat,ConstrainedIntand their related typescondecimal,confloat, andconint#371, thanks@StephenBrown2
Deprecatedignore_extra andallow_extra Config fields in favor ofextra,#352 by@liiight
Add type annotations to all functions, test fully with mypy,#373 by@samuelcolvin
fix for ‘missing’ error withvalidate_all orvalidate_always,#381 by@samuelcolvin
Change the second/millisecond watershed for date/datetime parsing to2e10,#385 by@samuelcolvin
v0.18.2 (2019-01-22)
Fix to schema generation withOptional fields, fix#361 by@samuelcolvin
v0.18.1 (2019-01-17)
addingMANIFEST.in to include license in package.tar.gz,#358 by@samuelcolvin
v0.18.0 (2019-01-13)
breaking change: don’t call validators on keys of dictionaries,#254 by@samuelcolvin
Fix validators withalways=True when the default isNone or the type is optional, also preventwhole validators being called for sub-fields, fix#132 by@samuelcolvin
improve documentation for settings priority and allow it to be easily changed,#343 by@samuelcolvin
fixignore_extra=False andallow_population_by_alias=True, fix#257 by@samuelcolvin
breaking change: SetBaseConfig attributesmin_anystr_length andmax_anystr_length toNone by default, fix#349 in#350 by@tiangolo
add support for postponed annotations,#348 by@samuelcolvin
v0.17.0 (2018-12-27)
prevent validators being called repeatedly after inheritance,#327 by@samuelcolvin
prevent duplicate validator check in ipython, fix#312 by@samuelcolvin
add “Using Pydantic” section to docs,#323 by@tiangolo ņ by@samuelcolvin
fix schema generation for fields annotated as: dict,: list,: tuple and: set,#330 ŏ by@nkonin
add support for constrained strings as dict keys in schema,#332 by@tiangolo
support for passing Config class in dataclasses decorator,#276 by@jarekkar(breaking change: this supersedes thevalidate_assignment argument withconfig)
support for nested dataclasses,#334 by@samuelcolvin
better errors when getting anImportError withPyObject,#309 by@samuelcolvin
renameget_validators to__get_validators__, deprecation warning on use of old name,#338 by@samuelcolvin
supportClassVar by excluding such attributes from fields,#184 by@samuelcolvin
v0.16.1 (2018-12-10)
fixcreate_model to correctly use the passed__config__,#320 by@hugoduncan
v0.16.0 (2018-12-03)
breaking change: refactor schema generation to be compatible with JSON Schema and OpenAPI specs,#308 by@tiangolo
addschema toschema module to generate top-level schemas from base models,#308 by@tiangolo
add additional fields toSchema class to declare validation forstr and numeric values,#311 by@tiangolo
rename_schema toschema on fields,#318 by@samuelcolvin
addcase_insensitive option toBaseSettingsConfig,#277 by@jasonkuhrt
v0.15.0 (2018-11-18)
move codebase to use black,#287 by@samuelcolvin
fix alias use in settings,#286 by@jasonkuhrt and@samuelcolvin
fix datetime parsing inparse_date,#298 by@samuelcolvin
allow dataclass inheritance, fix#293 by@samuelcolvin
fixPyObject = None, fix#305 by@samuelcolvin
allowPattern type, fix#303 by@samuelcolvin
v0.14.0 (2018-10-02)
dataclasses decorator,#269 by@Gaunt and@samuelcolvin
v0.13.1 (2018-09-21)
fix issue where int_validator doesn’t cast abool to anint#264 by@nphyatt
add deep copy support forBaseModel.copy()#249,@gangefors
v0.13.0 (2018-08-25)
raise an exception if a field’s name shadows an existingBaseModel attribute#242
addUrlStr andurlstr types#236
timedelta json encoding ISO8601 and total seconds, custom json encoders#247, by@cfkanesan and@samuelcolvin
allowtimedelta objects as values for properties of typetimedelta (matchesdatetime etc. behavior)#247
v0.12.1 (2018-07-31)
fix schema generation for fields defined usingtyping.Any#237
v0.12.0 (2018-07-31)
v0.11.2 (2018-07-05)
v0.11.1 (2018-07-02)
Allow arbitrary types in model#209, thanks@oldPadavan
v0.11.0 (2018-06-28)
v0.10.0 (2018-06-11)
addConfig.allow_population_by_alias#160, thanks@bendemaree
breaking change: removedConfig.min_number_size andConfig.max_number_size#183, thanks@Gr1N
breaking change: correct behaviour oflt andgt arguments toconint etc.#188for the old behaviour usele andge#194, thanks@jaheba
added error context and ability to redefine error message templates usingConfig.error_msg_templates#183,thanks@Gr1N
fix typo in validator exception#150
copy defaults to model values, so different models don’t share objects#154
v0.9.1 (2018-05-10)
v0.9.0 (2018-04-28)
tweak email-validator import error message#145
fix parse error ofparse_date() andparse_datetime() when input is 0#144, thanks@YannLuo
addConfig.anystr_strip_whitespace andstrip_whitespace kwarg toconstr,by default values isFalse#163, thanks@Gr1N
addConstrainedFloat,confloat,PositiveFloat andNegativeFloat types#166, thanks@Gr1N
v0.8.0 (2018-03-25)
fix type annotation forinherit_config#139
breaking change: check for invalid field names in validators#140
validate attributes of parent models#141
breaking change: email validation now usesemail-validator#142
v0.7.1 (2018-02-07)
fix bug withcreate_model modifying the base class
v0.7.0 (2018-02-06)
added compatibility with abstract base classes (ABCs)#123
breaking change: rename.config to.__config__ on a model
breaking change: remove deprecated.values() on a model, use.dict() instead
remove use ofOrderedDict and use simple dict#126
addConfig.use_enum_values#127
add wildcard validators of the form@validate('*')#128
v0.6.4 (2018-02-01)
allow python date and times objects#122
v0.6.3 (2017-11-26)
fix direct install withoutREADME.rst present
v0.6.2 (2017-11-13)
errors for invalid validator use
safer check for complex models inSettings
v0.6.1 (2017-11-08)
v0.6.0 (2017-11-07)
v0.5.0 (2017-10-23)
v0.4.0 (2017-07-08)
v0.3.0 (2017-06-21)
immutable models viaconfig.allow_mutation = False, associated cleanup and performance improvement#44
immutable helper methodsconstruct() andcopy()#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
addStrictStr which only always strings as input#52
v0.2.1 (2017-06-07)
pypi and travis together messed up the deploy ofv0.2 this should fix it
v0.2.0 (2017-06-07)
breaking change:values() on a model is now a method not a property,takesinclude andexclude arguments
allow annotation only fields to support mypy
add prettyto_string(pretty=True) method for models
v0.1.0 (2017-06-03)
add docs
add history
Project details
Unverified details
These details havenot been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author:Samuel Colvin
- Requires: Python >=3.6
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release historyRelease notifications |RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more aboutinstalling packages.
Source Distribution
Built Distribution
UploadedPython 3.6
Python 3.7
Python 3.8
File details
Details for the filepydantic-0.21.tar.gz
.
File metadata
- Download URL:pydantic-0.21.tar.gz
- Upload date:
- Size: 45.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb441dd50779347a450494c437db3ecbb13c1f3854497df879662782af516c5c | |
MD5 | 154fa0e104b6ab7b0d30b5a1d010f5aa | |
BLAKE2b-256 | cb2d732eb97b78bc4eef809d980335308b9de7134ecd83b13ae177756fc863b2 |
File details
Details for the filepydantic-0.21-py36.py37.py38-none-any.whl
.
File metadata
- Download URL:pydantic-0.21-py36.py37.py38-none-any.whl
- Upload date:
- Size: 46.6 kB
- Tags: Python 3.6, Python 3.7, Python 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93fa585402e7c8c01623ea8af6ca23363e8b4c6a020b7a2de9e99fa29d642d50 | |
MD5 | 4477d714d9a8915a6571f400f4e15c5a | |
BLAKE2b-256 | 0c3426797d017fc20907186cba125b1f1e5ea2c1dc2b4326399c8242844f18bf |