Python implementation of our validation library
Project description
Validation library
Installation
-
Install from Pypi:
$ pip install moveax-validation --- or --- $ poetry add moveax-validation
Usage
-
Simple example:
>>> from validation import ValidatorFactory >>> data = ['foo', 'bar'] >>> schema = { 'elements': { 'rules': ['minlen:3'] 'type': 'string' }, 'rules': ['maxlen:3'], 'type': 'array' } >>> validator = ValidatorFactory.make(schema) >>> validator.validate(data)
Testing
-
Run the test suite with:
$ poetry run coverage run unit.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
moveax-validation-2.0.0.tar.gz
(14.5 kB
view hashes)
Built Distribution
Close
Hashes for moveax_validation-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ab2cd52bf11604e80b2b7284c6ac910506ee723abfd636f786a3474a8adeb24 |
|
MD5 | 64b541351c2e37669843330bcba95166 |
|
BLAKE2b-256 | 7fa2fc2b2bb8eda9e7439a4b70fe5220d7770c75767cc80950218b35dcf58fb0 |