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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

valedictory-0.5.2-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file valedictory-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for valedictory-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 62569444b05cc91a4f22cd1b708453d96f0d3dc2d1949182d2b0aea2cc3129bc
MD5 0668edcebe5b6a2fccdaab5423527d44
BLAKE2b-256 4394d4579ce5049ee6a5df1b3c1988f379139ef56d3edc04db75f03ee492c14c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page