fast, powerful, and flexible validator with sane syntax
Project description
ValidX
ValidX is fast, powerful, and flexible validator with sane syntax.
from validx import Dict, Str
schema = Dict({"message": Str()})
data = {"message": "ValidX is cool!"}
print(schema(data))
{'message': 'ValidX is cool!'}
The full documentation is available at Read the Docs.
Changes
0.3
Fixed handling of default values and length validation within Dict validator.
0.2
Added support of timezones into Date and Datetime validators.
Added support of custom parsers into Date, Time, and Datetime validators.
Added Type validator for custom types.
0.1
Initial release.
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 Distributions
File details
Details for the file ValidX-0.3.tar.gz
.
File metadata
- Download URL: ValidX-0.3.tar.gz
- Upload date:
- Size: 537.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b9cde9fd9031ff0c247492fe75d43ed1121fafd813838f55d63fa2293acbb9b |
|
MD5 | 00c12168f6a0c55690d0fab7128ed764 |
|
BLAKE2b-256 | 1bb5837ea27daff168388424c15d8a68bf174218eb19d6db0747e5ef9e9cfacc |
File details
Details for the file ValidX-0.3-cp37-cp37m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ValidX-0.3-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4a16ef67537b2a8a612493f8931a6f08095f16eaaf591ffc5f15ea7f8ce6e32 |
|
MD5 | d2fd41b221f020def78d411b6ce7c742 |
|
BLAKE2b-256 | f6ad2c3687c879f39e38ada9ca4f00bb9cf849656b5d7573d8c71fa0a5356dd2 |
File details
Details for the file ValidX-0.3-cp37-cp37m-manylinux1_i686.whl
.
File metadata
- Download URL: ValidX-0.3-cp37-cp37m-manylinux1_i686.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04414ea2e6a2b53693f1ca7d54acbb445b88f8f4a1b0e769ab05c521c35aa99d |
|
MD5 | 91c281996487ab913925211e3ec73c3d |
|
BLAKE2b-256 | 043874c5747e38b74ea9a63ddb0eacb9bb3c94aa74173141d463972570e8b6d1 |
File details
Details for the file ValidX-0.3-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: ValidX-0.3-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 398.6 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd5a5acf6c37ebe0d4b859086540eeb436ddd4b2c6c26184060b595f2ae61fac |
|
MD5 | fcca3073b0768058e93f1b5668933867 |
|
BLAKE2b-256 | 94e193de35fc461fed812c5293683e57e9d30c3b69690fbda8e79aff9b0f8f15 |
File details
Details for the file ValidX-0.3-cp37-cp37m-macosx_10_6_intel.whl
.
File metadata
- Download URL: ValidX-0.3-cp37-cp37m-macosx_10_6_intel.whl
- Upload date:
- Size: 743.3 kB
- Tags: CPython 3.7m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c109340652901b5f2b260d7affa90cd7799690c56f8efa550a71dfbdf91d377 |
|
MD5 | 4608667220e17c12cc62f09840375bc0 |
|
BLAKE2b-256 | b55c86e4da3e6ec244f063a6d95aee13e267fb682085c5e933f302771f3ce91d |
File details
Details for the file ValidX-0.3-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ValidX-0.3-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0857747c046e8c2a73770bed3706ac4d18e4e0336241444f077e5e8e5c92affa |
|
MD5 | 9e2c15c137f3dbd83987903061af6e1b |
|
BLAKE2b-256 | 3b06093283b26f66de6fd0e59616b6bbad56d5e3989c94cb9ddaeb2f4579d5be |
File details
Details for the file ValidX-0.3-cp36-cp36m-manylinux1_i686.whl
.
File metadata
- Download URL: ValidX-0.3-cp36-cp36m-manylinux1_i686.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5974aab372e7571bd2dd30e909bd7dda8cb1457098ad53c4bb719e8b5570807 |
|
MD5 | 1fd64e99901979f57b90aeb3afc5eb75 |
|
BLAKE2b-256 | 95c898b26431dadcc8bd238baf6d54cce4e3c8a4f2d915a86bc6249f295d25c1 |
File details
Details for the file ValidX-0.3-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: ValidX-0.3-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 398.6 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6198cf3baf94d8da5ece7f9499e566aeb62b765e1ac81c82470c2e27242079ba |
|
MD5 | 520277b969847d90542df1bc885252bf |
|
BLAKE2b-256 | 937aacae3968c1d7fd7d84886f785af35be15e419111835cdeea96dd23a6a476 |
File details
Details for the file ValidX-0.3-cp36-cp36m-macosx_10_6_intel.whl
.
File metadata
- Download URL: ValidX-0.3-cp36-cp36m-macosx_10_6_intel.whl
- Upload date:
- Size: 743.1 kB
- Tags: CPython 3.6m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eb7c608cf8e06d5c90aeaefeae3c0fcb0d8c3a32926f67b5c3477a1bf047457 |
|
MD5 | 8e06ff1f49e61bdcba205e2bd0cd1481 |
|
BLAKE2b-256 | 6a3a4c55383bbfc13c7fc365489bc48686780d0f5449fc3646ab186243f76db5 |
File details
Details for the file ValidX-0.3-cp35-cp35m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ValidX-0.3-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e63c3d10099c6423b5d07b61553d85f967aaf182960a9f2342d493302ebe9f3e |
|
MD5 | cd349c894d864ab4f5c86347075b1f54 |
|
BLAKE2b-256 | 6d827b109555c3375066f0818b3b0b4e51efd70297f433976a7d0cf3866184bc |
File details
Details for the file ValidX-0.3-cp35-cp35m-manylinux1_i686.whl
.
File metadata
- Download URL: ValidX-0.3-cp35-cp35m-manylinux1_i686.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25f284b64f804511e1a18536528003e1ee5afc357b13d19edf6841ca72e7bb61 |
|
MD5 | 93c08bae6a599d43337347ae74a1dc60 |
|
BLAKE2b-256 | a9c37e42816d1fc5f7af5aed07147d5629dbf8ff143760b64d4c5b45524672ca |
File details
Details for the file ValidX-0.3-cp35-cp35m-macosx_10_6_intel.whl
.
File metadata
- Download URL: ValidX-0.3-cp35-cp35m-macosx_10_6_intel.whl
- Upload date:
- Size: 717.9 kB
- Tags: CPython 3.5m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d76ef1afcf8b0624cdc2487fb34146611c2ab56932b9b3294f6b3f1f2e3628a |
|
MD5 | be947af45b88e516b24e6cf09902aac5 |
|
BLAKE2b-256 | 383104750999651f1bc4350f93b8d2fdd06c36cd49652281c51b05492923ab02 |
File details
Details for the file ValidX-0.3-cp35-cp35m-macosx_10_5_fat.whl
.
File metadata
- Download URL: ValidX-0.3-cp35-cp35m-macosx_10_5_fat.whl
- Upload date:
- Size: 363.3 kB
- Tags: CPython 3.5m, macOS 10.5+ fat
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4e0066d0374aea8c40d43d98cf8def13709c10eec89757716b09d645fa92f20 |
|
MD5 | 379c416dba18e8731c346c322d54e998 |
|
BLAKE2b-256 | 5a45374358d4ad4afd434e228d783e04606058996ff38892a7a3eb539b1a4053 |
File details
Details for the file ValidX-0.3-cp34-cp34m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ValidX-0.3-cp34-cp34m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.4m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc4dff45114df0a154a7cecaf8635c9a74dd273faf3f0bf5cf9a4f86bd210377 |
|
MD5 | 9517f663e0b9b651e0a463a0747bde22 |
|
BLAKE2b-256 | 5298112a5fa29e8a0ad2622fd8bd7322bbb4857384b40c5c975012bf78590f0d |
File details
Details for the file ValidX-0.3-cp34-cp34m-manylinux1_i686.whl
.
File metadata
- Download URL: ValidX-0.3-cp34-cp34m-manylinux1_i686.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.4m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33df6b54b19732eb3f105526dbdecc34cb39e9c3ee0056ae4e361b64a2ca3f0f |
|
MD5 | 0c53617dc5bb72bb5ee053fdc97415a3 |
|
BLAKE2b-256 | 79a966ad525f56d44ede740490eeb49a8c67b4c5a2aaeaf0ef2c7f3be9c9e1ef |
File details
Details for the file ValidX-0.3-cp34-cp34m-macosx_10_6_intel.whl
.
File metadata
- Download URL: ValidX-0.3-cp34-cp34m-macosx_10_6_intel.whl
- Upload date:
- Size: 709.0 kB
- Tags: CPython 3.4m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 235e761781cf601f0bbe743ff5591a651badea4a65c7a5ea81a88024a8413b6f |
|
MD5 | b379b2b0cea96d99f416d1ac98c53032 |
|
BLAKE2b-256 | 3238821e63d35160cf77f079985787151c3c680f47622a08f5b56840f20ba578 |
File details
Details for the file ValidX-0.3-cp34-cp34m-macosx_10_5_fat.whl
.
File metadata
- Download URL: ValidX-0.3-cp34-cp34m-macosx_10_5_fat.whl
- Upload date:
- Size: 358.7 kB
- Tags: CPython 3.4m, macOS 10.5+ fat
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e08259bba54df62bf705c44756d90ce13ed09c552f21b557c9e677842719790a |
|
MD5 | 1946ae814804671f2bb617f82f253a87 |
|
BLAKE2b-256 | d22dc96a10cfe36cf3f583d1381f511cabc0c6975450b98111de70bc66641524 |
File details
Details for the file ValidX-0.3-cp27-cp27mu-manylinux1_x86_64.whl
.
File metadata
- Download URL: ValidX-0.3-cp27-cp27mu-manylinux1_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76c9d23166f7f2abab9ef92300cdec086fe143d9657aa79efc4498c85b5806e2 |
|
MD5 | 0c7b8cb558d0d7e3bd34c8d79f81242d |
|
BLAKE2b-256 | 188b1555387cdca1ab965a312af621d2d5394b02c8b9b373cca5af31ccd4d8eb |
File details
Details for the file ValidX-0.3-cp27-cp27mu-manylinux1_i686.whl
.
File metadata
- Download URL: ValidX-0.3-cp27-cp27mu-manylinux1_i686.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76c0e91c5cce59151b74042f01065bdf709ead43e67f45f5eb5aca046a19f9d4 |
|
MD5 | 197ed5d9e354e7e3d2360743f150b9b4 |
|
BLAKE2b-256 | a4d95711dd8a28bd87449f5bb54f88b29d521cebdc9754ac87b16ab939b91a94 |
File details
Details for the file ValidX-0.3-cp27-cp27m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ValidX-0.3-cp27-cp27m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 2.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e65f5dab8346ac6d14e1ff01e895512860335b612f2d0a8a28e584fa598fbf3 |
|
MD5 | afb1dfd566b02d395a635d452ba68494 |
|
BLAKE2b-256 | 46fe13376e59ae7cc1701776796333db1e1f6b291d98ed8c9505d55af98121c8 |
File details
Details for the file ValidX-0.3-cp27-cp27m-manylinux1_i686.whl
.
File metadata
- Download URL: ValidX-0.3-cp27-cp27m-manylinux1_i686.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 2.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a98088a5d1483140ffd79e1b713bec4ea8c90124caa8a61215b91de2c6c80856 |
|
MD5 | 1017d111e2c7d5a1d2d269e241e4cc9c |
|
BLAKE2b-256 | e2e369b233c14b0055e284b5ed6b9ebdc532f4d742a1b44b0fe67b3d0b721658 |
File details
Details for the file ValidX-0.3-cp27-cp27m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: ValidX-0.3-cp27-cp27m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 379.0 kB
- Tags: CPython 2.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 184eb24a655cd79a05feec2953f1f69aa4c13b03df1609c3d5a94cc20ff09684 |
|
MD5 | 327a59a2aa62ba5f9ecd09a9be026190 |
|
BLAKE2b-256 | e3626b41ea66bf7c95960ee4e08f9188d9cf481560ecb75444a9a338bbd33118 |
File details
Details for the file ValidX-0.3-cp27-cp27m-macosx_10_6_intel.whl
.
File metadata
- Download URL: ValidX-0.3-cp27-cp27m-macosx_10_6_intel.whl
- Upload date:
- Size: 701.7 kB
- Tags: CPython 2.7m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce5f307eee56c1754451457a463ff7c6780026b3e9a8bff16b10b76dfd673c29 |
|
MD5 | 87112bb5af9bb89e709018b2c54197ed |
|
BLAKE2b-256 | f2cb6f9d0b37c7e7421436acaf38fbd746063d8db6323dc4eb0a224ac36baf2d |