yyafl is an easy to use web form generation, validtion and metadata utility library
Yann’s Yet Another Form Library is a web form validtion and metadata library. Inspired heavily by Django newforms, yyafl is a partial-reimplementation and adaptation of the ‘newforms’ library to exist outside of the Django infastructure, letting it be used in other frameworks, such as CherryPy and Pylons. Forms are created as a special class of domain object, which can then be validated and data extracted, and upon encountering errors, allow the form to be regenerated in HTML for the user’s viewing.
YYAFL believes in the separation of style from content, and as such is designed to be used in several different popular templating systems such as Mako and Cheetah, by allowing much of the layout work to be done in the templating system. If you wish to generate more generic, yet still flexible forms, yyafl has support for decorators (Python callables) which are applied when rendering a form as HTML, compatible with basic template callable methods.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.