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 details)

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3

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

Uploaded Python 2

File details

Details for the file Maat2-0.8.tar.gz.

File metadata

  • Download URL: Maat2-0.8.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Maat2-0.8.tar.gz
Algorithm Hash digest
SHA256 8329d92ff53c4406e7b18fb85e46b8bcecbc035c3bffc78cb8cb646e4a22c55f
MD5 706016b07c74c7e4fb309fa55deb1895
BLAKE2b-256 44b91c6839d8bae032a8ccda1845c753272c7243f59b587e98d5a0991cdd5416

See more details on using hashes here.

File details

Details for the file Maat2-0.8-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for Maat2-0.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c796ef285a83af907eaf95d10d5bb807aee330e1acffdb9850baaffc54e022b2
MD5 bc612acf1ec03d8dbe01528a14fadfb9
BLAKE2b-256 2e558e131f5a61c0ca1ee2da3c8e0bca0ef190f8da167b2ae621fb89c10d41af

See more details on using hashes here.

File details

Details for the file Maat2-0.8-py2-none-any.whl.

File metadata

File hashes

Hashes for Maat2-0.8-py2-none-any.whl
Algorithm Hash digest
SHA256 9ffff7a419e622bf55355ae3984f96e19dd4baa530b1eaef7762f3efb4624488
MD5 5fcc958db171d87a78dfd5d122053365
BLAKE2b-256 5d743079cad71fe6cfbc0a8a6b8be46f09c7eeadab77d4a343eba300c5604ecf

See more details on using hashes here.

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