{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"Cerberus validates Python dictionaries and documents against a schema, checking types and other constraints with minimal dependencies and extensible custom validation rules.","skillfed_tags":["data-validation","schema-enforcement"],"use_cases":["Validate incoming JSON or form data in a web API before processing","Check configuration files conform to an expected schema before loading","Enforce data structure constraints in data pipelines or ETL workflows","Normalize and validate user input in CLI tools or interactive applications","Define and enforce document schemas for database or document store operations"],"what_it_does":"Cerberus is a lightweight data validation library that checks Python dictionaries and documents against a schema you define. It performs type checking and constraint validation out of the box, and is designed to be easily extended with custom validation logic. The library has no required dependencies beyond importlib-metadata and is maintained to work across modern Python versions from 3.7 onward.\n\nYou define a schema as a dictionary specifying field names and their validation rules (type, allowed values, etc.), then create a Validator instance and call validate() on your data. It returns True if the data passes all rules or False if it fails; you can inspect the errors property to see what went wrong. The design prioritizes simplicity and extensibility, making it suitable for validating configuration files, API payloads, form submissions, and other structured data.","worth_installing":"Yes. Cerberus is a mature, actively maintained library with no known vulnerabilities, permissive ISC licensing, and low install friction. It solves a common problem\u2014validating structured data\u2014with a straightforward API and minimal dependencies. Install it if you need schema validation without the complexity of heavier frameworks."},"id":"cerberus","links":{"html":"https://skillfed.io/packages/cerberus","md":"https://skillfed.io/packages/cerberus.md","pypi":"https://pypi.org/project/cerberus/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-06","license_spdx":null,"license_treatment":"permissive","name":"Cerberus","python_support":"supports_current","summary":"Lightweight, extensible schema and data validation tool for Pythondictionaries."},"popularity":{"monthly_downloads":6700879,"position":1870,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.3.8"}
