Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
PyPI

pydantic 0.21

pip install pydantic==0.21

Newer version available (2.11.7)

Released:

Data validation and settings management using python 3.6 type hinting

Verified details

These details have beenverified by PyPI
Owner
Maintainers
Avatar for dmontagu from gravatar.comdmontagu

Unverified details

These details havenot been verified by PyPI
Project links
Meta
  • License: MIT License (MIT)
  • Author:Samuel Colvin
  • Requires: Python >=3.6

Project description

BuildStatusCoveragepypi

Data validation and settings management using python type hinting.

Seedocumentation for more details.

History

v0.21.0 (2019-03-15)

v0.20.1 (2019-02-26)

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

  • addpy.typed marker file for PEP-561 support,#391 by@je-l

  • 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)

v0.18.1 (2019-01-17)

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)

v0.16.1 (2018-12-10)

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)

v0.14.0 (2018-10-02)

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)

  • addby_alias argument in.dict() and.json() model methods#205

  • add Json type support#214

  • support tuples#227

  • major improvements and changes to schema#213

v0.11.2 (2018-07-05)

  • addNewType support#115

  • fixlist,set &tuple validation#225

  • separate outvalidate_model method, allow errors to be returned along with valid values#221

v0.11.1 (2018-07-02)

v0.11.0 (2018-06-28)

  • makelist,tuple andset types stricter#86

  • breaking change: remove msgpack parsing#201

  • addFilePath andDirectoryPath types#10

  • model schema generation#190

  • JSON serialisation of models and schemas#133

v0.10.0 (2018-06-11)

  • addConfig.allow_population_by_alias#160, thanks@bendemaree

  • breaking change: new errors format#179, thanks@Gr1N

  • 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)

  • allow customget_field_config on config classes#159

  • addUUID1,UUID3,UUID4 andUUID5 types#167, thanks@Gr1N

  • modify some inconsistent docstrings and annotations#173, thanks@YannLuo

  • fix type annotations for exotic types#171, thanks@Gr1N

  • re-use type validators in exotic types#171

  • scheduled monthly requirements updates#168

  • addDecimal,ConstrainedDecimal andcondecimal types#170, thanks@Gr1N

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

  • addcreate_model method#113#125

  • 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)

  • prevent duplicate validators,#101

  • addalways kwarg to validators,#102

v0.6.0 (2017-11-07)

  • assignment validation#94, thanks petroswork!

  • JSON in environment variables for complex types,#96

  • addvalidator decorators for complex validation,#97

  • depreciatevalues(...) and replace with.dict(...),#99

v0.5.0 (2017-10-23)

  • addUUID validation#89

  • removeindex andtrack 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 intruncate

  • addparse_obj,parse_raw andparse_file helper functions#58

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

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

Verified details

These details have beenverified by PyPI
Owner
Maintainers
Avatar for dmontagu from gravatar.comdmontagu

Unverified details

These details havenot been verified by PyPI
Project links
Meta
  • License: MIT License (MIT)
  • Author:Samuel Colvin
  • Requires: Python >=3.6

Release historyRelease notifications |RSS feed

This version

0.21

Download files

Download the file for your platform. If you're not sure which to choose, learn more aboutinstalling packages.

Source Distribution

pydantic-0.21.tar.gz (45.6 kBview details)

UploadedSource

Built Distribution

pydantic-0.21-py36.py37.py38-none-any.whl (46.6 kBview details)

UploadedPython 3.6Python 3.7Python 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

Hashes for pydantic-0.21.tar.gz
AlgorithmHash digest
SHA256eb441dd50779347a450494c437db3ecbb13c1f3854497df879662782af516c5c
MD5154fa0e104b6ab7b0d30b5a1d010f5aa
BLAKE2b-256cb2d732eb97b78bc4eef809d980335308b9de7134ecd83b13ae177756fc863b2

See more details on using hashes here.

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

Hashes for pydantic-0.21-py36.py37.py38-none-any.whl
AlgorithmHash digest
SHA25693fa585402e7c8c01623ea8af6ca23363e8b4c6a020b7a2de9e99fa29d642d50
MD54477d714d9a8915a6571f400f4e15c5a
BLAKE2b-2560c3426797d017fc20907186cba125b1f1e5ea2c1dc2b4326399c8242844f18bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security SponsorDatadog MonitoringFastly CDNGoogle Download AnalyticsPingdom MonitoringSentry Error loggingStatusPage Status page

[8]ページ先頭

©2009-2025 Movatter.jp