Skip to main content

Python implementation of our validation library

Project description

Validation library

Build Status Coverage Status GitHub PyPI PyPI - Python Version

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 details)

Uploaded Source

Built Distribution

moveax_validation-2.0.0-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

Details for the file moveax-validation-2.0.0.tar.gz.

File metadata

  • Download URL: moveax-validation-2.0.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.5 Linux/5.5.8-arch1-1

File hashes

Hashes for moveax-validation-2.0.0.tar.gz
Algorithm Hash digest
SHA256 2b9eae0a069aad5fa67fffb9af9e5d6b6e953204655a9bf66831808ee18e3697
MD5 7828880f9b2b9542aee09469c0feb211
BLAKE2b-256 5629cadef34d49742fe6a6d639ac1f0efeead92f99197b2e34f77c0462abcf86

See more details on using hashes here.

File details

Details for the file moveax_validation-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for moveax_validation-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ab2cd52bf11604e80b2b7284c6ac910506ee723abfd636f786a3474a8adeb24
MD5 64b541351c2e37669843330bcba95166
BLAKE2b-256 7fa2fc2b2bb8eda9e7439a4b70fe5220d7770c75767cc80950218b35dcf58fb0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page