Validator
Validator copied to clipboard
Easy-to-use, Highly Configurable Python Data Validator. Inspired by Laravel Validator
Write rule that validates data to be date. If data is already datetime class return true. For strings check if it's correctly formatted. Description: "The field under validation must be...
**Rule Name:** DateFormat **Rule Arguments:** 1. format - String that represents python datetime format **Rule Description:** The field under validation must match the given format **Rule Usage Example:** ```python reqs...
**Rule Name:** UUIDv5 **Rule Description:** The field under validation must be a valid Universally Unique IDentifier version 5 (UUIDv5). UUIDv5 is name based uses SHA-1 for hashing **Rule Usage Example:**...
Write Rule to validate data to contain only alphabetic characters (a-zA-z0-9) Description: "The field under validation must be entirely alpha-numeric characters" Please see [CONTRIBUTING.md](https://github.com/CSenshi/Validator/blob/master/CONTRIBUTING.md) for Contribution details :100:
Write Rule to validate data to contain only alphabetic characters ([a-z][A-z][0-9]-_) Description: "The field under validation may have alpha-numeric characters, as well as dashes and underscores." Please see [CONTRIBUTING.md](https://github.com/CSenshi/Validator/blob/master/CONTRIBUTING.md) for...
Rule to validate data to be numeric. if its string checks with builtin `isnumeric()` else check for types int, float, complex Description: "The field under validation must be numeric" Please...
**Bug Description:** *{A clear and concise description of what the bug is}* **Expected Behavior:** *{A clear and concise description of what you expected to happen}* i want to Custom error...
* Replace unneeded comprehension with generator * Replace mutable default arguments with None