Skip to main content

WTForms extensions for Tornado.

WTForms-Tornado targets Python 3.11+.

Latest PyPI version

Usage

import tornado.ioloop
import tornado.web

from wtforms import IntegerField
from wtforms.validators import DataRequired
from wtforms_tornado import Form

class SumForm(Form):

    a = IntegerField(validators=[DataRequired()])
    b = IntegerField(validators=[DataRequired()])

class SumHandler(tornado.web.RequestHandler):
    def get(self):
        self.write('Hello, world')

    def post(self):
        form = SumForm(self.request.arguments)
        if form.validate():
            self.write(str(form.data['a'] + form.data['b']))
        else:
            self.set_status(400)
            self.write(str(form.errors))

application = tornado.web.Application([
    (r"/", SumHandler),
])

if __name__ == "__main__":
    application.listen(8888)
    tornado.ioloop.IOLoop.current().start()

Installation

Install the package with pip:

pip install wtforms-tornado

Or from a local checkout:

pip install .

For development work, install the dev extras:

pip install -e '.[dev]'

Metadata

Release files for wtforms-tornado 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wtforms-tornado 0.1.0
File Size Uploaded
wtforms_tornado-0.1.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wtforms-tornado 0.1.0
File Interpreter ABI Platform
wtforms_tornado-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / wtforms_tornado-0.1.0.tar.gz

Download URL wtforms_tornado-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0f9a39ee917218af0e82228505bc3ea8beda8c6e319b45ce707cd44c362c5965
BLAKE2b-256 checksum
How to use checksums
441b28ee08dce784b4031bd65f1e6028656bbf1721d0888195f018cef021b8a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.

Transparency log

Release files / wtforms_tornado-0.1.0-py3-none-any.whl

Download URL wtforms_tornado-0.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eccdfe27563550fa2578706be994833be83eb126e88c85d66d36fd66386fc97f
BLAKE2b-256 checksum
How to use checksums
6b6e4fcc50bcb5c9849701b9c515152358801d3a07954f1a4051b0c44f87ad92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page