Skip to main content

Python version of "the most awesome validation engine for PHP"

Project description

respect_validation

Tests (pytest, flake8, mypy) Code Coverage

PyPI license PyPI version respect_validation PyPI pyversions

Python version of "the most awesome validation engine for PHP"

Documentation

Installation

pip install respect-validation

--> DEMO

PHP and Python have many differences that why this library has some small changes, but an awesome architecture was migrated without changes.

General description:

Why is it great alternative to others?

  • It is easy to make logical check in one line. You can easily see logic in chain of rules. There are no addition classes, instances, dictionaries, there is only one chain of rules and it is beautiful.
  • There are logical operators inside, you can use them as usual rules. You can easily set several validation chains and wrap them into logical rule like AnyOf or OneOf (only one chain valid) or AllOf or When (if ... then ... else) and so on. I hope you will find this interesting.
  • Any rule or chain of rules you can easily revert to negative result with only one logical rule - Not.
  • There are many of prebuilt rules. They will be useful for most of general cases.
  • You can easily create you own package of rules and use it when it is needed.

How to say thank you?

If you like this library please add star for initial library "the most awesome validation engine for PHP".

Many thanks to Alexandre Gomes Gaigalas for beautiful architecture.

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

respect_validation-1.3.0.tar.gz (48.0 kB view hashes)

Uploaded Source

Built Distribution

respect_validation-1.3.0-py3-none-any.whl (139.3 kB view hashes)

Uploaded Python 3

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