Deform is a Python HTML form library independent of underlying web framework. Deform is ideal for complex server-side generated forms with JavaScript integration. More complex examples include nested forms where one can dynamically add and remove subform items. Date and time picking widgets and other rich widgets are supported out of the box.
Deform comes with Chameleon templates for Bootstrap based widgets. It uses Colander as for form schema and validation definitions. Deform integrates well with Pyramid web framework and several other web frameworks. Peppercorn library is used to convert flat HTML name value mapping form submissions to stream of name value mappings submissions, allowing building complex and nested form structure.
Even if Deform uses Chameleon templates internally, you can embed rendered Deform forms into any template language.
README: https://github.com/pylons/deform