https://github.com/lig/cerberus-loaders
Cerberus loaders to load Validators from various data formats including JSON, YaML and Python Classes
https://github.com/lig/cerberus-loaders
Last synced: 7 months ago
JSON representation
Cerberus loaders to load Validators from various data formats including JSON, YaML and Python Classes
- Host: GitHub
- URL: https://github.com/lig/cerberus-loaders
- Owner: lig
- Created: 2015-03-23T16:02:16.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-23T18:53:02.000Z (about 11 years ago)
- Last Synced: 2025-10-29T07:45:19.432Z (7 months ago)
- Language: Python
- Size: 168 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://gitter.im/lig/cerberus-loaders?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
# Cerberus Loaders
Loaders to load [Cerberus](https://github.com/nicolaiarocci/cerberus) Validators from various data formats.
## Formats support
* JSON
* YaML
* Python classes (planned)
## Usage
from cerberus_loaders.json import validator_from_json
v = validator_from_json(json_schema_file)
v.validate({'field': 'value'})
## Python support
* Python 2.7
* Python 3.4
* Python 3.5
Older versions could do the job too but are not supported.