Skip to main content

Python library to layout, render and validate HTML forms in web applications

Project description

Formbar is a python library to layout, render and validate HTML forms in web applications. Formbar renders forms which are compatible with Twitter Bootstrap styles.

In contrast to many other form libraries forms with formbar are configured in XML files to separate the form definition form the implementation and handle it as configuration.

Formbar is the German word for “shapeable” and should emphasise the character of formbar which hopefully makes shaping your forms more easy.

Formbar uses a subset of the FormAlchemy as underlying library for rendering and basic validation.

Features

  • Support for SQLAlchemy mapped items and plain forms.

  • Expression bases rules

  • Type conversation and validation

  • XML based form definition

  • Row and column based layouts

  • Twitter bootstrap support

  • Custom CSS styling

  • Error messages

  • Help texts

  • Numbering of fields

Getting started

Please refer to formbar documentation for further information how to get started using formbar. For all the impatient out there here comes a very comprehensive example code which should give a glimpse on how things could work for you:

from formbar.config import Config, load
from formbar.form import Form

# Simple rendering here, no data submission
# nor validation or saving.
config = Config(load('/path/to/formconfig.xml'))
form_config = config.get_form('example')
form = Form(form_config)
form.render()

Documentation

Formbar should be well documented and comes with documentation, bunch of unitests and last but not least an example serve which serve some example forms.

Licence

Formbar is Free Software and licensed under GPL version 2.

Project state

Formbar is in a early project state and still in under development including large design changes. Call it alpha if you want.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

formbar-0.1devel.tar.gz (119.6 kB view details)

Uploaded Source

File details

Details for the file formbar-0.1devel.tar.gz.

File metadata

  • Download URL: formbar-0.1devel.tar.gz
  • Upload date:
  • Size: 119.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for formbar-0.1devel.tar.gz
Algorithm Hash digest
SHA256 1f5b5451a24255904a78d970f0e75274fc1b1ff9b1394fb4454dd05c2bb8250c
MD5 8d4892738034a13c570709ebb5648c0e
BLAKE2b-256 ec11d265fa0d9bd7171fbcc52bc9d439a8ddc3251e01038fa9142b96ebc51cf2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page