Skip to main content

Lightweight, extensible schema and data validation tool for Python dictionaries.

Project description

https://secure.travis-ci.org/nicolaiarocci/cerberus.png?branch=master

Cerberus is a lightweight and extensible data validation library for Python.

>>> v = Validator({'name': {'type': 'string'}})
>>> v.validate({'name': 'john doe'})
True

Features

Cerberus provides type checking and other base functionality out of the box and is designed to be non-blocking and easily extensible, allowing for custom validation. It has no dependancies and is thoroughly tested under Python 2.6, Python 2.7, Python 3.3, Python 3.4, PyPy and PyPy3.

Documentation

Complete documentation is available at http://python-cerberus.org

Installation

Cerberus is on PyPI so all you need is:

$ pip install cerberus

Testing

Just run:

$ python setup.py test

Or you can use tox to run the tests under all supported Python versions. Make sure the required python versions are installed and run:

$ pip install tox  # first time only
$ tox

Contributing

Please see the Contribution Guidelines.

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

Cerberus-0.9.2.tar.gz (17.6 kB view details)

Uploaded Source

File details

Details for the file Cerberus-0.9.2.tar.gz.

File metadata

  • Download URL: Cerberus-0.9.2.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Cerberus-0.9.2.tar.gz
Algorithm Hash digest
SHA256 b122c7b2cbf856ea2587e187fac968fc8dcd49d47aa1f239abd9eaa0ed86a7ce
MD5 c0d7830016f6ae632ecb7492e28d1c65
BLAKE2b-256 c17a65f3aa48279cda81208ccca4c932e63fedaf02f80f1fb6a482a7b8d8f239

See more details on using hashes here.

Supported by

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