Skip to main content

Maat is a extensible transformation and validation library for Python

Project description

https://travis-ci.org/Attumm/Maat.svg?branch=master

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…

Project details


Release history Release notifications

This version

0.8

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Maat2, version 0.8
Filename, size File type Python version Upload date Hashes
Filename, size Maat2-0.8-py2-none-any.whl (3.1 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size Maat2-0.8-py2.py3-none-any.whl (3.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size Maat2-0.8.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page