Skip to main content

Cerberus

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

Cerberus is an ISC Licensed validation tool for Python dictionaries.

>>> 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 and Python 3.4.

Documentation

Complete documentation is available at http://cerberus.readthedocs.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.

Metadata

Release files for Cerberus 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Cerberus 0.8.1
File Size Uploaded Provenance Actions
Cerberus-0.8.1.tar.gz 12.3 kB Without provenance Details for Cerberus-0.8.1.tar.gz

Release files / Cerberus-0.8.1.tar.gz

Download URL Cerberus-0.8.1.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0532a5ca3b3559ff05c984363749dc8d48d734c8e70cbca3f3c33f19c0a007d0
BLAKE2b-256 checksum
How to use checksums
b8aee4a13d1165fbee5fb95d630fd7696e8e5d350e74a29f21b2c8e45a40a7c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Cerberus 0.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

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