The form module
form is an (incompatible) alternative to the
cgi module from the standard Python distribution.
form is intended to make it easier to write robust CGI scripts,
making your code clearer and reducing the amount of type- and error-checking you have
to do with
cgi. It supports all HTML form functions, including
multiple-file-upload and imagemap-input, and has in-built Denial of Service safeguards.
It has utility functions you'll use a lot when writing CGIs, and can also output
url-encoded and multipart/form-data for sending to servers.
It has been used on production Apache and IIS webservers and with the PyApache and (with some glue) mod_python modules; it should also work with any standard-CGI-capable server. It is compatible with Python 1.5 upwards (and has tested up to version 2.3).
form is not intended to be a web application framework. It does not provide sessions, templating or a object model you have to code to. It only deals with form encoding and decoding — the architecture of your scripts remains up to you. See the documentation for example usage.
This is intended to be the last release before a substantial rewrite and extension of the ideas behind form.py.
All released versions