Validator
Validator copied to clipboard
Easy-to-use, Highly Configurable Python Data Validator. Inspired by Laravel Validator
**Bug Description:** Given a regex with that validades string that should contain either `VALUEA` or `VALUEB` ``` regex:^(VALUEA | VALUEB)$ ``` **Expected Behaviour:** it should execute the regex **Code Fragment:**...
Fixes issue #131 - Changes how the translator parses string rules within the _value_to_array() function. - Uses a special regex pattern for parsing `regex:` rules to prevent the regex-related pipes...
**Bug Description:** ``` >>> validate({"d":-2}, {"d":[rules.Integer(), rules.Min(1)]}, return_info=True) (False, {}, {'d': {'Min': 'Expected Maximum: 1, Got: -2'}}) ``` The validation correctly fails, also the error message correctly indicates that the...
**Bug Description:** This rule is valid? An integer expected, but the text can be a valid value. **Code Fragment:** ```python valid = Validator({'session_id': 'abcd'}, {'session_id': 'required|integer|min:1'}) ```
**Bug Description:** Unable to build package from sdist on pypi. The requirements/prod.txt file needs to be added to MANIFEST.in as it's required by setup.py to build the package. **Expected Behavior:**...
I am getting TypeError when I am trying to validate a dict with proper validation rule. The validation_rule I am using : {'email': 'required|mail', 'password': 'required|min:6'} The data I am...
Hello, **Bug Description:** I installed validator on a new virtualenv (nothing installed except setuptools 57 and wheel 0.36.2) with python 3.8.10 on Ubuntu 20.04 from pipy with `pip install validator`....
**Framework:** Tornado **Description:** [Tornado](https://www.tornadoweb.org/en/stable/) is a Python web framework and asynchronous networking library. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections *Examples are...
**Rule Name:** ActiveURL **Rule Description:** The field under validation must have a valid A or AAAA record **Rule Usage Example:** ```python reqs = {'data' : 'facebook.com'} rule = {'data' :...
**Framework:** Django **Description:** [Django](https://www.djangoproject.com/) is a high-level Python Web framework *Examples are good for every project. Validator has some examples in [Examples](https://github.com/CSenshi/Validator/tree/master/examples) folder. Anyone willing to contribute can check flask...