Welcome to Cerberus¶
CERBERUS
, n. The watch-dog of Hades, whose duty it was to guard the entrance; everybody, sooner or later, had to go there, and nobody wanted to carry off the entrance. - Ambrose Bierce, The Devil’s Dictionary
Cerberus provides powerful yet simple and lightweight data validation functionality out of the box and is designed to be easily extensible, allowing for custom validation. It has no dependencies and is thoroughly.
At a Glance¶
You define a validation schema and pass it to an instance of the
Validator
class:
>>> schema = {'name': {'type': 'string'}}
>>> v = Validator(schema)
Then you simply invoke the validate()
to validate
a dictionary against the schema. If validation succeeds, True
is returned:
>>> document = {'name': 'john doe'}
>>> v.validate(document)
True
Table of Contents¶
- Installation
- Usage
- Validation Schemas
- Validation Rules
- Normalization Rules
- Errors & Error Handling
- Extending
- Contributing
- API
- FAQ
- External resources
- Cerberus Changelog
- Version 1.3.5
- Version 1.3.4
- Version 1.3.3
- Version 1.3.2
- Version 1.3.1
- Version 1.3
- Version 1.2
- Version 1.1
- Version 1.0.1
- Version 1.0
- Version 0.9.2
- Version 0.9.1
- Version 0.9
- Version 0.8.1
- Version 0.8
- Version 0.7.2
- Version 0.7.1
- Version 0.7
- Version 0.6
- Version 0.5
- Version 0.4.0
- Version 0.3.0
- Version 0.2.0
- Version 0.1.0
- Version 0.0.3
- Version 0.0.2
- Version 0.0.1
- Upgrading to Cerberus 1.0
- Authors
- Contact
- License
Copyright Notice¶
Cerberus is an open source project by Nicola Iarocci. See the original LICENSE for more information.