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 | RSS feed

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.

Source Distribution

Maat2-0.8.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distributions

Maat2-0.8-py2.py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 2 Python 3

Maat2-0.8-py2-none-any.whl (3.1 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page