Cerberus
Python library for validating data against a schema of rules, with type checking and custom validators.
docs.python-cerberus.org/repositorydocs
Cerberus is a Python library that checks data against a schema of rules. A Validator is built from a schema dict, and its validate method returns whether a dictionary matches it. The library provides type checking and other base functionality, and custom validation can be added to it. Nicola Iarocci maintains the project.
The package is installed from PyPI with pip. The documentation is the project’s own reference.
Worth knowing
Python versions below 3.8 install one extra dependency, importlib-metadata, so the package is not dependency-free on those interpreters.
Sources
- 2026-11-04: links
docs.python-cerberus.org/ - 2026-11-04: links, Written in, Categories, Install with, GitHub stars
github.com/pyeve/cerberus - 2026-11-04: Maintainer, License model
github.com/pyeve/cerberus/blob/1.3.x/LICENSE - 2026-11-04: License, Runtime, Minimum runtime, Current major version
github.com/pyeve/cerberus/blob/1.3.8/pyproject.toml - 2026-11-04: Contributors
api.github.com/repos/pyeve/cerberus/contributors?per_page=1 - 2026-11-04: Last release, First release
pypi.org/pypi/Cerberus/json