Contact me for new documentation and versions !!!
Python Input ValidationNote: Documentation and other might contain bugs, didn't have time yet to verify it.
An improved version is beeing made
It will feature better HTML validators and support for & ! and | operators.
Provide a simple free to use generic input validation.
It's licensed as BSD-2 allowing easy integration without the legal nightmare.
- Generic input validation
- Support field dependencies
- Easy to extend
- Support multiple-input mashing
(example: get input from web-form, yet load defaults from database)
from pyiv import * validator=Checker( a =And(Int(),Gt(0)), b =Optional(Len(min=5)) ) results=validator(a=5,b="Test") print(results.values.b) #Will return 'Test' print(results["a"].value) #Will return 5 (as integer)
For more see Documentation
- Download pyiv.zip
- Unzip the file
- Run python setup.py install as root, or copy in your PYTHON_PATH
Tip: You can also run python3.1 or other version to install it for that version.