Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

fast, powerful, and flexible validator with sane syntax

Project description

ValidX

https://travis-ci.com/Cottonwood-Technology/ValidX.svg?branch=master https://badge.fury.io/py/ValidX.svg https://readthedocs.org/projects/validx/badge/?version=latest

ValidX is fast, powerful, and flexible validator with sane syntax.

from validx import Dict, Str

schema = Dict({"message": Str()})
data = {"message": "ValidX is cool!"}

print(schema(data))
{'message': 'ValidX is cool!'}

The full documentation is available at Read the Docs.

Changes

0.6.1

  • Fixed type declarations for Validator.clone() method.

0.6

  • Added Python 3.8 into test matrix.
  • Made validators immutable.
  • Added contracts checks on validator initialization.
  • Added new simplified syntax for cloning validators.
  • Got rid of global state within LazyRef validator. It now acts like a pure function.
  • Fixed raising of ambiguous MinLengthError on List and Dict validation.

0.5.1

  • Fixed type declarations. Again. One does not simply make mypy happy.

0.5

  • Removed confusing nullable check from Any validator.
  • Fixed type declarations.

0.4

  • Fixed library objects pickling.
  • Fixed checking of length within List validator.

0.3

  • Fixed handling of default values and length validation within Dict validator.

0.2

  • Added support of timezones into Date and Datetime validators.
  • Added support of custom parsers into Date, Time, and Datetime validators.
  • Added Type validator for custom types.

0.1

  • Initial release.

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 ValidX, version 0.6.1
Filename, size File type Python version Upload date Hashes
Filename, size ValidX-0.6.1-cp27-cp27m-macosx_10_9_x86_64.whl (439.7 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size ValidX-0.6.1-cp27-cp27m-manylinux1_i686.whl (1.6 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size ValidX-0.6.1-cp27-cp27m-manylinux1_x86_64.whl (1.6 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size ValidX-0.6.1-cp27-cp27m-manylinux2010_i686.whl (1.6 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size ValidX-0.6.1-cp27-cp27m-manylinux2010_x86_64.whl (1.6 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size ValidX-0.6.1-cp27-cp27mu-manylinux1_i686.whl (1.6 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size ValidX-0.6.1-cp27-cp27mu-manylinux1_x86_64.whl (1.6 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size ValidX-0.6.1-cp27-cp27mu-manylinux2010_i686.whl (1.6 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size ValidX-0.6.1-cp27-cp27mu-manylinux2010_x86_64.whl (1.6 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size ValidX-0.6.1-cp35-cp35m-macosx_10_9_x86_64.whl (426.9 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size ValidX-0.6.1-cp35-cp35m-manylinux1_i686.whl (1.8 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size ValidX-0.6.1-cp35-cp35m-manylinux1_x86_64.whl (1.9 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size ValidX-0.6.1-cp35-cp35m-manylinux2010_i686.whl (1.8 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size ValidX-0.6.1-cp35-cp35m-manylinux2010_x86_64.whl (1.9 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size ValidX-0.6.1-cp35-cp35m-win32.whl (345.2 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size ValidX-0.6.1-cp35-cp35m-win_amd64.whl (397.6 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size ValidX-0.6.1-cp36-cp36m-macosx_10_9_x86_64.whl (467.9 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size ValidX-0.6.1-cp36-cp36m-manylinux1_i686.whl (1.9 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size ValidX-0.6.1-cp36-cp36m-manylinux1_x86_64.whl (2.0 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size ValidX-0.6.1-cp36-cp36m-manylinux2010_i686.whl (1.9 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size ValidX-0.6.1-cp36-cp36m-manylinux2010_x86_64.whl (2.0 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size ValidX-0.6.1-cp36-cp36m-win32.whl (363.3 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size ValidX-0.6.1-cp36-cp36m-win_amd64.whl (415.2 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size ValidX-0.6.1-cp37-cp37m-macosx_10_9_x86_64.whl (461.8 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size ValidX-0.6.1-cp37-cp37m-manylinux1_i686.whl (1.9 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size ValidX-0.6.1-cp37-cp37m-manylinux1_x86_64.whl (2.0 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size ValidX-0.6.1-cp37-cp37m-manylinux2010_i686.whl (1.9 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size ValidX-0.6.1-cp37-cp37m-manylinux2010_x86_64.whl (2.0 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size ValidX-0.6.1-cp37-cp37m-win32.whl (363.2 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size ValidX-0.6.1-cp37-cp37m-win_amd64.whl (415.6 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size ValidX-0.6.1-cp38-cp38-macosx_10_9_x86_64.whl (470.0 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size ValidX-0.6.1-cp38-cp38-manylinux1_i686.whl (2.3 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size ValidX-0.6.1-cp38-cp38-manylinux1_x86_64.whl (2.5 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size ValidX-0.6.1-cp38-cp38-manylinux2010_i686.whl (2.3 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size ValidX-0.6.1-cp38-cp38-manylinux2010_x86_64.whl (2.5 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size ValidX-0.6.1-cp38-cp38-win32.whl (372.7 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size ValidX-0.6.1-cp38-cp38-win_amd64.whl (429.6 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size ValidX-0.6.1-py2-none-any.whl (38.5 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size ValidX-0.6.1-py3-none-any.whl (38.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ValidX-0.6.1.tar.gz (37.0 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