Highly flexible, no magic input validation library
Project description
pycerberus is a framework to check user data thoroughly so that you can protect your application from malicious (or just garbled) input data.
Remove stupid code which converts input values: After values are validated, you can work with real Python types instead of strings - e.g. 42 instead of ‘42’, convert database IDs to model objects transparently.
Implement custom validation rules: Writing custom validators is straightforward, everything is well documented and pycerberus only uses very little Python magic.
Focus on your value-adding application code: Save time by implementing every input validation rule only once, but 100% right instead of implementing a dozen different half-baked solutions.
Ready for global business: i18n support (based on GNU gettext) is built in, adding custom translations is easy.
Tune it for your needs: You can implement custom behavior in your validators, e.g. fetch translations from a database instead of using gettext or define custom translations for built-in validators.
Use it wherever you like: pycerberus does not depend on specific contexts (e.g. web development) so you can also use it in every Python application.
Changelog
0.2 (16.03.2010)
You now can declare custom messages as a class-level dict
Added interface to retrieve error details from InvalidDataErrors
Added validation schemas to validate a set of values (typically a web form). Schemas can also inherit from other schemas to avoid code duplication.
Validators try to make thread-safety violations obvious
Nicer API to retrieve error details from an InvalidDataError
0.1 (30.01.2010)
initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pycerberus-0.2.tar.gz
.
File metadata
- Download URL: pycerberus-0.2.tar.gz
- Upload date:
- Size: 81.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0d7ba1862db84f5b5ed0bce101155574a0b34c6edcec613d23ba54c7e43f752 |
|
MD5 | 708fb4756dc309d646bf3de2bfd100ab |
|
BLAKE2b-256 | 8734530de08abdebaaa5fbde9f0dfdd924b12efbcc8fc4bc5e79e4c61d63302b |
File details
Details for the file pycerberus-0.2-py2.6.egg
.
File metadata
- Download URL: pycerberus-0.2-py2.6.egg
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25ed7511879ba7acbb91951aceefb1dbbf917010618ba649ea60f3d318369ce0 |
|
MD5 | 84baa1346bc40b04956aa71a96132d7f |
|
BLAKE2b-256 | dec7150c2bfd085ed36055aab14ddb4057084dbac3566c1ba83385c385630636 |