Skip to main content

Validate dicts against a schema

Project description

Valedictory validates dicts. It operates in a manner superficially similar to Django forms, but is tuned for use in API validation, and other situations where you are receiving JSON as opposed to key-value POST form data. It takes in a dict of data (probably obtained from a JSON POST request), and validates that data against some criteria.

Input data can be typed, unlike regular Django forms, and validators can be nested, again unlike Django forms.

Additionally, Validator themselves are stateless once constructed. You can reuse the same Validator instance to validate input data multiple times, from multiple sources.

Django is not a requirement. It is just useful as a comparison.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for valedictory, version 0.0.0
Filename, size File type Python version Upload date Hashes
Filename, size valedictory-0.0.0-py3-none-any.whl (19.5 kB) File type Wheel Python version 3.5 Upload date Hashes View hashes
Filename, size valedictory-0.0.0.tar.gz (14.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page