Guillermo
cd50601172
Fix typos ( #274 )
2018-10-07 16:57:36 +01:00
Samuel Colvin
5089865857
uprev
2018-10-02 17:36:41 +01:00
pyup.io bot
cdcf611f41
Scheduled monthly dependency update for October ( #271 )
...
* Update sphinx from 1.7.8 to 1.8.1
* Update mypy from 0.620 to 0.630
* Update pytest-cov from 2.5.1 to 2.6.0
* Update pytest-isort from 0.2.0 to 0.2.1
2018-10-02 17:34:46 +01:00
Samuel Colvin
f3a278bb8d
Dataclasses ( #269 )
...
* pydantic.dataclasses.dataclass decorator
* add dataclasses to requirnment.txt
* reimplement dataclasses
* fix linting, fix coverage
* docs
2018-10-01 09:48:28 +01:00
Stefan Gangefors
c32ce342c9
Add support for deep copying of models ( #261 )
...
Using `model.copy(deep=True)` will deep copy a module instance.
Making a deep copy is useful for models that have lists of dicts or
any other non-simple data structure to not accidentally modify data
between instances.
`model.copy()` behaviour is unchanged and will do a shallow copy of
the model instance.
fix #249
2018-09-10 11:35:58 -04:00
pyup.io bot
9f874a7e97
Scheduled monthly dependency update for September ( #256 )
...
* Update sphinx from 1.7.6 to 1.7.8
* Update attrs from 18.1.0 to 18.2.0
* Update pytest from 3.7.2 to 3.7.4
2018-09-10 05:46:05 -04:00
Samuel Colvin
c7c15bc415
fix json documentation ( #253 )
2018-08-29 10:38:02 +01:00
Samuel Colvin
0839646788
uprev
2018-08-25 17:15:22 +01:00
Samuel Colvin
f46dc0c56f
timedelta json encoding ( #247 )
...
* timedelta json encoding, altnative to #220
* history and tests
* fix comments and tests
* docs for json_encoders
* tests plain timedelta object parsing
* uprev
* tweak docs
2018-08-25 17:06:32 +01:00
Samuel Colvin
e0a8dd2da8
issue and pull request templates, favicon
2018-08-25 16:49:36 +01:00
pyup.io bot
f32ecf2258
Scheduled monthly dependency update for August ( #240 )
...
* Update sphinx from 1.7.5 to 1.7.6
* Update mypy from 0.610 to 0.620
* Update pycodestyle from 2.3.1 to 2.4.0
* Update pytest from 3.6.2 to 3.7.0
* uprev pytest
* reset pycodestyle
2018-08-20 12:03:54 +01:00
Nikita Grishko
aad175a25f
add `UrlStr and urlstr` types #236 ( #246 )
...
fix #236
* add ``UrlStr`` and ``urlstr`` types #236
* review fixes
2018-08-20 10:14:46 +01:00
Evghenii Goncearov
a0e0aa4f79
Docs for json type ( #228 )
2018-07-11 15:08:51 +01:00
Samuel Colvin
1dc294015d
cleaning up _populate_sub_fields, support tuples ( #227 )
...
* cleaning up _populate_sub_fields
* support tuples, fix #12
* fix, history and docs
* rename _create_sub_type
2018-07-10 18:45:15 +01:00
pyup.io bot
9f83ca48b9
Scheduled monthly dependency update for July ( #217 )
...
* Update sphinxcontrib-websupport from 1.0.1 to 1.1.0
* Update mypy from 0.600 to 0.610
* Update pycodestyle from 2.3.1 to 2.4.0
* Update pytest from 3.6.0 to 3.6.2
* revert pycodestyle agaaaain
2018-07-02 12:12:01 +01:00
Evghenii Goncearov
73015d2a72
Allow arbitrary types in model ( #209 )
...
* Allow arbitrary types in model
* Replaced ConfigError with RuntimeError
* Corrections of the ArbitraryTypeError exception class
2018-07-02 12:08:43 +01:00
Nikita Grishko
d43ab483ee
fix schema creation docs ( #212 )
...
* fix schema creation docs
* review fixes
2018-06-30 23:06:39 +01:00
Samuel Colvin
37364a05b9
implement JSON serialisation ( #210 )
...
* implement JSON serialisation, fix #133
* documenting JSON serialisation
* fix coverage
2018-06-28 18:21:45 +01:00
Samuel Colvin
dd8d013e10
Schemas ( #190 )
...
* starting field and model schemas
* field.schema()
* sub-models working
* move default in Schema and tests
* adding schema
* tweak docs
2018-06-28 13:06:24 +01:00
Nikita Grishko
f8c1a350f4
add `FilePath and DirectoryPath` types #10 ( #208 )
...
* add ``FilePath`` and ``DirectoryPath`` types #10
* review fixes
* improve tests
* simplify errors
2018-06-28 11:04:00 +01:00
clip
d2745065f5
fix typo ( #207 )
...
* fix typo
* fix test
2018-06-24 17:52:56 +01:00
Ben Demaree
29d61400f1
Fix doc references to values and add some clarifications ( #204 )
2018-06-19 16:39:05 +01:00
Samuel Colvin
9338c413c7
remove msgpack ( #201 )
...
* remove msgpack
* update history
2018-06-18 12:20:10 +01:00
Samuel Colvin
f0f9de5f96
improve docs on error handling ( #198 )
...
* improve docs on error handling
* change ValidationError signature
* cleanup
* rename _raw_errors > raw_errors
* improve _display_error_type_and_ctx
2018-06-11 13:06:50 +01:00
Jasper Schulz
3ef595556c
Added le and ge bounds to constrained numerics. ( #194 )
...
* Added `le` and `ge` bounds to constrained numerics.
* Addressed comments.
* Addressed @Gr1N comments.
* Removed comment.
2018-06-08 10:32:26 +01:00
Nikita Grishko
3f53cb5980
Update documentation ( #162 ) ( #189 )
...
* Update documentation (#162 )
* More docs about error handling
2018-06-04 10:55:48 +01:00
pyup.io bot
cbfbe6b11c
Scheduled monthly dependency update for June ( #186 )
...
* Update sphinx from 1.7.4 to 1.7.5
* Update attrs from 17.4.0 to 18.1.0
* Update pycodestyle from 2.3.1 to 2.4.0
* Update pyflakes from 1.6.0 to 2.0.0
* Update pytest from 3.5.1 to 3.6.0
* Update pytest-isort from 0.1.0 to 0.2.0
* Update pytest-mock from 1.9.0 to 1.10.0
* revert pycodestyle, yawwwwn
2018-06-02 15:35:52 +01:00
Samuel Colvin
1bf385f5bd
adding gitter badges
2018-05-24 16:58:18 +01:00
Ben Demaree
62d39d90a7
Make model dump/load symmetric for aliased fields ( #160 )
...
* Make dump/load symmetric for aliased fields
* Only populate model fields by alias if enabled
* Document Config.allow_population_by_alias
* Update history
* Fix doc formatting
* Fix doc errors
2018-05-24 16:46:03 +01:00
Nikita Grishko
99d7eafa61
add `Decimal, ConstrainedDecimal and condecimal` types #170 ( #175 )
2018-05-10 12:11:45 +01:00
pyup.io bot
f4207281a0
Scheduled monthly dependency update for May ( #168 )
...
* Update sphinx from 1.7.2 to 1.7.4
* Update mypy from 0.580 to 0.590
* Update pycodestyle from 2.3.1 to 2.4.0
* Update pytest from 3.5.0 to 3.5.1
* Update pytest-mock from 1.7.1 to 1.9.0
* correct pycodestyle and mypy
* update history
2018-05-05 14:55:55 +01:00
Nikita Grishko
b4d3a2d544
add `UUID1, UUID3, UUID4 and UUID5` types ( #167 ) ( #167 )
2018-05-02 22:49:55 +01:00
Samuel Colvin
36a20613fb
uprev, add links to contributors in history
2018-04-28 19:37:35 +01:00
Nikita Grishko
dc07277017
add `ConstrainedFloat, confloat, PositiveFloat and NegativeFloat` types #166 ( #166 )
2018-04-28 18:40:28 +01:00
Nikita Grishko
f88e5925b5
add strip_whitespace option for ConstrainedStr and constr ( #163 )
2018-04-25 02:29:25 +07:00
clip
cfb1057ae6
add document about "custom data types" ( #157 )
2018-04-16 19:32:50 +01:00
Samuel Colvin
e8a6e8266f
tweak history links ( #152 )
2018-04-06 09:59:17 +01:00
Samuel Colvin
2966beeb40
rerun benchmarks, update history
2018-03-25 18:24:40 +01:00
Samuel Colvin
afb90b91e8
implement email validator ( #142 )
...
* implement email validator, replace #112
* coverage and cleanup
* update docs
2018-03-25 18:09:37 +01:00
Samuel Colvin
a8096959e2
check for invalid validators ( #140 )
...
* check for invalid validators
* documentation and history
2018-03-25 16:41:48 +01:00
Samuel Colvin
76db984cc1
prepare for new version update history
2018-03-25 15:54:18 +01:00
pyup.io bot
27887c6e99
Scheduled monthly dependency update for March ( #134 )
...
* Update sphinx from 1.6.6 to 1.7.1
* Update msgpack-python from 0.5.1 to 0.5.5
* Update coverage from 4.4.2 to 4.5.1
* Update isort from 4.3.0 to 4.3.4
* Update pytest from 3.4.0 to 3.4.1
* Update pytest-mock from 1.6.3 to 1.7.1
* correcting runtime for netlify
2018-03-02 13:29:19 +00:00
Samuel Colvin
89201f08b0
add wildcard validators ( #128 )
...
* add wildcard validators
* update docs and history
* more tests
* history links
2018-02-06 19:32:30 +00:00
Samuel Colvin
7a77d06058
add use_enum_values to config ( #127 )
...
* add `use_enum_values` to config
* docs and history
2018-02-06 18:23:41 +00:00
Samuel Colvin
f9cf6b42f4
Create model method ( #125 )
...
* adding create_model method
* adding method
* docs and tweaks
* prevent config and base together
* tweak docs
2018-02-06 14:29:56 +00:00
Josep Cugat
06008146fe
Subclass abcmeta ( #123 )
...
* Added compatibility with python's ABC
* Added documentation
* Added link
2018-02-06 13:56:45 +00:00
pyup.io bot
c17abac2f8
Scheduled monthly dependency update for February ( #121 )
...
* Update sphinx from 1.6.5 to 1.6.6
* Update msgpack-python from 0.4.8 to 0.5.1
* Update isort from 4.2.15 to 4.3.0
* Update pytest from 3.3.1 to 3.4.0
2018-02-01 17:05:55 +00:00
Samuel Colvin
acf3128dcd
Validator always ( #102 )
...
* validators called always, fix #100
* testing validate always validators
* adding docs
2017-11-08 14:37:01 +00:00
Samuel Colvin
050dbb191b
tweak docs
2017-11-07 13:31:23 +00:00
Samuel Colvin
91f962e533
replace values() with dict() ( #99 )
...
* replace values(), with dict(), fix #98
* add history and test
2017-11-07 13:28:42 +00:00