Yet another validation lib ;). Provides tools for general-purpose variable validation, function inputs/outputs validation as well as class fields validation. All entry points raise consistent ValidationError including all contextual details, with dynamic inheritance of ValueError/TypeError as appropriate.
Project description
python-validate (valid8)
"valid8ing is not a crime" ;-)
valid8
provides user-friendly tools for 3 kind of "entry points":
- general-purpose inline validation (=anywhere in your code),
- function inputs/outputs validation
- class fields validation.
All these entry points raise consistent ValidationError
including user-friendly details, with inheritance of ValueError
/ TypeError
as appropriate. You can customize this error so as to get unique error types convenient for i18n.
The documentation for users is available here: https://smarie.github.io/python-valid8/
A readme for developers is available here: https://github.com/smarie/python-valid8
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
Built Distribution
Hashes for valid8-5.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb545f1898085a9d0270eba1f0533c51e4c8e999ff397164c805b5c6b7a627a0 |
|
MD5 | 3ca13fdcd1e7ad7790e41fcbf3015fb5 |
|
BLAKE2b-256 | 8c06084388bdc0197adbc73feb9a57ea86c46322576a3a3b3ccd4e40485516d5 |