Maat is a easy extensible transformation and validation library for Python. Build for corner cases.
The project is named after the ancient egyption god Maat. Her scale was used to weight the heart as described by book of the dead.
Since the scale is magical besides validating values it can transform them too.
Maat is an dictionary to dictionary tool, that is to say that from the input dictionary and validation dictionary an new dictionary is created. each value of dictionary to be validated is passed through their selected validator functions. The result is an validated new dictionary.
Examples
>>> import maat
>>> user = {'name': 'John Doe'}
>>> user_validation = {'name': {'validator': 'str'}}
>>> maat.scale(user, user_validation)
{'name': 'John Doe'}
More to come…
Metadata
Release files for Maat2 0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Maat2-0.8.tar.gz | 1.7 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Maat2-0.8-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
| Maat2-0.8-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 7.9 kB
Release files / Maat2-0.8.tar.gz
| Download URL | Maat2-0.8.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8329d92ff53c4406e7b18fb85e46b8bcecbc035c3bffc78cb8cb646e4a22c55f
|
|
BLAKE2b-256 checksum How to use checksums |
44b91c6839d8bae032a8ccda1845c753272c7243f59b587e98d5a0991cdd5416
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Maat2-0.8-py2.py3-none-any.whl
| Download URL | Maat2-0.8-py2.py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c796ef285a83af907eaf95d10d5bb807aee330e1acffdb9850baaffc54e022b2
|
|
BLAKE2b-256 checksum How to use checksums |
2e558e131f5a61c0ca1ee2da3c8e0bca0ef190f8da167b2ae621fb89c10d41af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Maat2-0.8-py2-none-any.whl
| Download URL | Maat2-0.8-py2-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
9ffff7a419e622bf55355ae3984f96e19dd4baa530b1eaef7762f3efb4624488
|
|
BLAKE2b-256 checksum How to use checksums |
5d743079cad71fe6cfbc0a8a6b8be46f09c7eeadab77d4a343eba300c5604ecf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |