Skip to main content

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
    

Release files for moveax-validation 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moveax-validation 2.0.0
File Size Uploaded
moveax-validation-2.0.0.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moveax-validation 2.0.0
File Interpreter ABI Platform
moveax_validation-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 48.5 kB

Release files / moveax-validation-2.0.0.tar.gz

Download URL moveax-validation-2.0.0.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2b9eae0a069aad5fa67fffb9af9e5d6b6e953204655a9bf66831808ee18e3697
BLAKE2b-256 checksum
How to use checksums
5629cadef34d49742fe6a6d639ac1f0efeead92f99197b2e34f77c0462abcf86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.7.5 Linux/5.5.8-arch1-1

Release files / moveax_validation-2.0.0-py3-none-any.whl

Download URL moveax_validation-2.0.0-py3-none-any.whl
Size 34.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ab2cd52bf11604e80b2b7284c6ac910506ee723abfd636f786a3474a8adeb24
BLAKE2b-256 checksum
How to use checksums
7fa2fc2b2bb8eda9e7439a4b70fe5220d7770c75767cc80950218b35dcf58fb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.7.5 Linux/5.5.8-arch1-1

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page