https://github.com/wilfredpine/python-form-validators
Customized form validations for python web development.
https://github.com/wilfredpine/python-form-validators
django form-validation framework input python validation validations validator web
Last synced: 4 months ago
JSON representation
Customized form validations for python web development.
- Host: GitHub
- URL: https://github.com/wilfredpine/python-form-validators
- Owner: wilfredpine
- License: mit
- Created: 2021-11-01T03:29:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-20T03:46:17.000Z (almost 4 years ago)
- Last Synced: 2025-03-05T08:49:53.402Z (11 months ago)
- Topics: django, form-validation, framework, input, python, validation, validations, validator, web
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Form Validators
A customized python validations.
### How to use?
```python
from Validations import custom_validation
class UserManager(models.Manager):
def validator(self, postData):
custom_validation.submit(postData)
custom_validation.alpha_space(['f_name|First Name', 'm_name|Middle Name', 'l_name|Last Name'])
custom_validation.maxInput(['f_name|First Name', 'm_name|Middle Name', 'l_name|Last Name'], 100)
custom_validation.minInput(['f_name|First Name', 'm_name|Middle Name', 'l_name|Last Name'], 1)
custom_validation.maxInput(['password|Password'], 50)
custom_validation.minInput(['password|Password'], 8)
custom_validation.maxInput(['phone|Phone'], 13)
custom_validation.minInput(['phone|Phone'], 10)
return custom_validation.errors
```