Skip to main content

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)

Python versions Build Status Tests Status codecov

Documentation PyPI Downloads Downloads per week GitHub stars

"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:

A readme for developers is available here:

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 valid8, version 5.1.1
Filename, size File type Python version Upload date Hashes
Filename, size valid8-5.1.1-py2.py3-none-any.whl (64.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size valid8-5.1.1.tar.gz (881.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page