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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file valedictory-0.5.0.b1.tar.gz
.
File metadata
- Download URL: valedictory-0.5.0.b1.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71761e913864ce0bd6c0485a39e8ef4bcf92a33cd68ace3616815f44d556643b |
|
MD5 | 8f96a57c905539b02e969e57c90e69ee |
|
BLAKE2b-256 | c44f8f7cd1c769cf0aedfed14a94d6c62b4b4217c5de67b6d36db203a900e5c3 |