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.5
Removed confusing nullable check from Any validator.
Fixed type declarations.
0.4
Fixed library objects pickling.
Fixed checking of length within List validator.
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.5.tar.gz
.
File metadata
- Download URL: ValidX-0.5.tar.gz
- Upload date:
- Size: 30.3 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 | a315c1aaffa8530b53232d19ecf603ea62fc08c9847537fd416938a1cd5317db |
|
MD5 | 69fb3a49be3849605ce90ed6756d871d |
|
BLAKE2b-256 | 9b5d30c792aa75cecce49581a4f19bb70c0c6e1115e5b65865444230e2dc3164 |
File details
Details for the file ValidX-0.5-cp37-cp37m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ValidX-0.5-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 | aa36285024d69afdd1a1beacfbb7bd41f3afa8ba30cf17d716a9945acd96e194 |
|
MD5 | dbf1b27db71cc2416a3fea95db492316 |
|
BLAKE2b-256 | ac5632ab31c031159e527acff2dd561c443836c678c6a2502534ea7a4615c902 |
File details
Details for the file ValidX-0.5-cp37-cp37m-manylinux1_i686.whl
.
File metadata
- Download URL: ValidX-0.5-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 | 8ca7f80b8d4c43635bffe56ff21b9276ba3d447a9218ec334a98c8b951118128 |
|
MD5 | 72c960487887f536fdb37fb45cd65b56 |
|
BLAKE2b-256 | 6aff93d25706b5fdf1f5f469d8fd3b6d507f9b59975c37dd9408535a9f58c82e |
File details
Details for the file ValidX-0.5-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: ValidX-0.5-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 394.4 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 | c697f837e9e350be073b264300a5da5c0e6fe030ada6109f4c2010a29714b06b |
|
MD5 | 5282572f321c9e5ac94b2433d314f9b6 |
|
BLAKE2b-256 | 98dd270c64ff85f088538f936a2b8a5bc4c0aa19f6ca14f505cd0fb729d40404 |
File details
Details for the file ValidX-0.5-cp37-cp37m-macosx_10_6_intel.whl
.
File metadata
- Download URL: ValidX-0.5-cp37-cp37m-macosx_10_6_intel.whl
- Upload date:
- Size: 733.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 | 5e549d9ba6dddab96f8409087c6b0ae9b014e226e245d576ac7cac9be7b31e1e |
|
MD5 | 069cf194e0e5c5c3461655c3266bfd1c |
|
BLAKE2b-256 | 079783550b870d3e44111163bb1384f437534e24e4bd9d82889ebdfa547d34a3 |
File details
Details for the file ValidX-0.5-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ValidX-0.5-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 | 714a73aae3c99a0320a99d4dcd1b2b8f132de874af8b2345bab6d0c93b0893cf |
|
MD5 | e2a0bb2f98fc8bfc0d4d5064a895d260 |
|
BLAKE2b-256 | 9b4cc3c73beb8c282c73d52593e74e3c5be3d435bc72e5d29a28fc1e17f35e5c |
File details
Details for the file ValidX-0.5-cp36-cp36m-manylinux1_i686.whl
.
File metadata
- Download URL: ValidX-0.5-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 | 627dcfadbc02070dbf3ac1b368f1e227ab11788f394f5825bc1d42f1300c6f67 |
|
MD5 | c904c383fa5dd01edf783950e03dd34b |
|
BLAKE2b-256 | 4d5e15e46912bcc80f14a151d38de7cafee9ded5feb96cea59e3442e761c4eab |
File details
Details for the file ValidX-0.5-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: ValidX-0.5-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 394.5 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 | 8b5ad9b366f125268b09602a0a1b7c09044eee37d993befb03944382ffe9e818 |
|
MD5 | 589aa9b8b45db965004f6443e3de35d8 |
|
BLAKE2b-256 | da57d153e9a93885fe0012a8cd958e3f40148fd1d292953a94b1205198c5ae8c |
File details
Details for the file ValidX-0.5-cp36-cp36m-macosx_10_6_intel.whl
.
File metadata
- Download URL: ValidX-0.5-cp36-cp36m-macosx_10_6_intel.whl
- Upload date:
- Size: 733.3 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 | 2acce17f31fd7b033751c87295d76242d2d8caadff406ff13abe7cc19c6633d5 |
|
MD5 | 5d1d67af5e39c8ab85b46de9e5e06441 |
|
BLAKE2b-256 | 3211a765623f174cc782f9dffc857ffde59c266ecc3ec0cdb018c04383805e32 |
File details
Details for the file ValidX-0.5-cp35-cp35m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ValidX-0.5-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 | 183f84fc33c1b325091f4f2aab353cc98f6425b393b715c60c530f1fae5967ed |
|
MD5 | b7d9b5aab3d45299a5453eeec81ae0cb |
|
BLAKE2b-256 | 0d52ec6d72bdeaad2a6118f52008289290b31dac6dd9064f13629e557834e912 |
File details
Details for the file ValidX-0.5-cp35-cp35m-manylinux1_i686.whl
.
File metadata
- Download URL: ValidX-0.5-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 | bed1574c330e265ad2dd8ba6d3103ccc3a9893ab7d554ceb523cfb4bd90e0d03 |
|
MD5 | 3b27c58e545141d0c7fadde793077629 |
|
BLAKE2b-256 | 3a12a416c324aa177d9f08f419288dcf398ffa06ff8fe4cf680b710e8430ca1e |
File details
Details for the file ValidX-0.5-cp35-cp35m-macosx_10_6_intel.whl
.
File metadata
- Download URL: ValidX-0.5-cp35-cp35m-macosx_10_6_intel.whl
- Upload date:
- Size: 708.3 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 | 1730555761c9cdf2ff3297356912fb861a614bbecd783eb6194c432331fcbdeb |
|
MD5 | edeea209dffc4162b4855186b8e714e5 |
|
BLAKE2b-256 | ecfdadd1db6b9aa3ad846d33da6d81efecaf8c97dc5fb12629c5ffaf5949ba2c |
File details
Details for the file ValidX-0.5-cp35-cp35m-macosx_10_5_fat.whl
.
File metadata
- Download URL: ValidX-0.5-cp35-cp35m-macosx_10_5_fat.whl
- Upload date:
- Size: 358.4 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 | 6c2d37896e58bc7b52dbf207e599ff27bff168012d04d65d85de4f419d97ed2e |
|
MD5 | 557fd8d342ade906ce306dd103cd889b |
|
BLAKE2b-256 | 2bd4ba8eae5fb230e0543e7132ed056e630e512b89c8d9f04bfe359117804f05 |
File details
Details for the file ValidX-0.5-cp34-cp34m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ValidX-0.5-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 | 4e31d2c7772048734127baae19b21e6447992fd4e284695728e82d1ae36c1d42 |
|
MD5 | a3666091c726c6e8be6eb2c0ce7d9f41 |
|
BLAKE2b-256 | 08ce246db890e8e8c93e9de4121adb56c4ec8fdf32d4cfa8910bc5d0d0d2d9a1 |
File details
Details for the file ValidX-0.5-cp34-cp34m-manylinux1_i686.whl
.
File metadata
- Download URL: ValidX-0.5-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 | 9263b4d89f45cb112c5ad591cb2ab01a683e8a81e601421724f824884514e6a6 |
|
MD5 | 4ad58f40cb0cd050349900f91de9aad6 |
|
BLAKE2b-256 | f9b765cb957b8408522e1bf646b13e23c5cf199ca726247e40d18daa9eb8d336 |
File details
Details for the file ValidX-0.5-cp34-cp34m-macosx_10_6_intel.whl
.
File metadata
- Download URL: ValidX-0.5-cp34-cp34m-macosx_10_6_intel.whl
- Upload date:
- Size: 698.8 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 | 84b02e0319dd2b7684ff57f82e2eb163b6f9b1215a7ea2657a0ef26e5278b479 |
|
MD5 | ef774d620d8d5c6e6561567f7d41b93e |
|
BLAKE2b-256 | def299f4f3bbaf1089d309f732db85d5409ed26819bf170c90ae9494da6b5665 |
File details
Details for the file ValidX-0.5-cp34-cp34m-macosx_10_5_fat.whl
.
File metadata
- Download URL: ValidX-0.5-cp34-cp34m-macosx_10_5_fat.whl
- Upload date:
- Size: 354.0 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 | 7dc9967e462eea579d95ba7de61a1f6c389e61114d8da35da94d1141df98632b |
|
MD5 | 3cfe847425e5b32c79d6b2d48d041cea |
|
BLAKE2b-256 | 35c3864bb8c2e25fb7c726341687d12ad4d0228d27a23c78672826108d0b9cf1 |
File details
Details for the file ValidX-0.5-cp27-cp27mu-manylinux1_x86_64.whl
.
File metadata
- Download URL: ValidX-0.5-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 | 9410817ab2e91ed50e25523c28eb39c3a06e3954cd80366296ab14f5edbd5cd3 |
|
MD5 | e3bdebbe49e41ce31233a6eba88356a8 |
|
BLAKE2b-256 | ed38b1d5b1836ff518f1578c8bec9e8c289983052a1767805b82832a3e4f3347 |
File details
Details for the file ValidX-0.5-cp27-cp27mu-manylinux1_i686.whl
.
File metadata
- Download URL: ValidX-0.5-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 | 3ae1c485536ec0b6e0b20bf05eb2f4bec80af6463fad071ff4441b9338e1cbf5 |
|
MD5 | 88a27a628ca89bb0b1839543ec270ead |
|
BLAKE2b-256 | d64a6da488f33c9684bf3b0e11f4349711a2b1cd7d732e975385597f784e1e47 |
File details
Details for the file ValidX-0.5-cp27-cp27m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ValidX-0.5-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 | 6bf7f6f43469ee99e0d26ed8dd511db243ee194e68f3e14d5fd0d4906f718b0d |
|
MD5 | 3e8920ebaf3ac60341ed46648b766b85 |
|
BLAKE2b-256 | 096edc9c96ce299b7daa7d62dbf90e5f91446658924965abc9389712b53c252f |
File details
Details for the file ValidX-0.5-cp27-cp27m-manylinux1_i686.whl
.
File metadata
- Download URL: ValidX-0.5-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 | f1306944910ef4e06abd540a1a431efad0d4a2bda40172d3e94fb652125b3a84 |
|
MD5 | 46184d70f98955bdd1c7c9d9e373440b |
|
BLAKE2b-256 | 7d53c30084eae83f1962f98b444a241f838c4e18b1ce539e0a7d5bd01c5b8fcc |
File details
Details for the file ValidX-0.5-cp27-cp27m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: ValidX-0.5-cp27-cp27m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 374.5 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 | 30fde8eae5eee76d89594824f7bfedca8c5f5f85cc9ac5d3d9a5bedb521ac847 |
|
MD5 | f7e7305d08ab2982f7fba83680b1ac8e |
|
BLAKE2b-256 | f03714d0ca3294d16e85577fa9fdc6f432ae3c869b248aa56e68915f7c02690e |
File details
Details for the file ValidX-0.5-cp27-cp27m-macosx_10_6_intel.whl
.
File metadata
- Download URL: ValidX-0.5-cp27-cp27m-macosx_10_6_intel.whl
- Upload date:
- Size: 692.1 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 | 64f340168dcda8cecfaef659c3eb034d1aa7986e865e4e19a4df48d8cbbd914c |
|
MD5 | ec806d33c63aae00ccfa3886ddd50926 |
|
BLAKE2b-256 | 2d1a91414d9a3d3db318cf4e9d2f7eb1b1ad0e3a3ef19e490c98a665be30504b |