MicroSchema is a schema validation library for Python.
Project description
MicroSchema
Example:
>>> import microschema
>>> schema = {
... 'username': {'type': str, 'required': True},
... 'score': {'type': int},
... }
>>> data = {
... 'username': 'foobar',
... 'score': 10000,
... }
>>> print(microschema.validate(schema, data))
Python Compatibility
Python 2.7 and 3.3+ are supported.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
microschema-0.5.tar.gz
(4.2 kB
view details)
File details
Details for the file microschema-0.5.tar.gz.
File metadata
- Download URL: microschema-0.5.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a3893c1964dcda9dc3c309cabac1d3b5c7230b633d052a206d7b34281f74518
|
|
| MD5 |
fbc513dfc79ff13166716a9c8031de0e
|
|
| BLAKE2b-256 |
0b77f798b41ab5aefe500c23a5f5546c68e2b7b3cd8d269eb1dfd3c11aed45fa
|