Skip to main content

Build status Python versions

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, Python 3.5, Python 3.6, 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.

Download files

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

Source Distribution

Cerberus-1.1.tar.gz (38.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for Cerberus-1.1.tar.gz
Algorithm Hash digest
SHA256 a5b39090fde3ec3294c9d7030b8eda935b42222160a66a922e0c8aea34cabfdf
MD5 805e2f45d989022d1d997556e3146e1d
BLAKE2b-256 e07e3949c86f4e60bc2b3d24ebc94af55ffaf9d62ad221f47c194edc9bd7fa94

See more details on using hashes here.

Release history Release notifications | RSS feed

1.3.8

2 files

1.3.7

2 files

1.3.6

2 files

1.3.5

2 files

1.3.4

1 file

1.3.3

2 files

1.3.2

1 file

1.3.1

1 file

1.3

1 file

1.2

1 file

This release

1.1 This release

1 file

1.0.1

1 file

0.9.2

1 file

0.9.1

1 file

0.9

1 file

0.8.1

1 file

0.8

1 file

0.7.2

1 file

0.7.1

1 file

0.7

1 file

0.6

1 file

0.5

1 file

0.4.0

1 file

0.3.0

1 file

0.2.0

1 file

0.1.0

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page