Skip to main content

tornadobase

https://travis-ci.org/coyote240/tornadobase.svg?branch=master

A base application and boilerplate for the Tornado web server.

Installation

To include tornadobase in your application install using pip:

pip install tornadobase

Run the tests

pip install nose

nosetests

Use

tornadobase provides basic Application and Handler classes that wrap up some of the boilerplate you’ll typically need when using the Tornado web server. To get a simple site running, create a file called application.py:

from tornadobase.handlers import BaseHandler
from tornadobase.application import Application

class IndexHandler(BaseHandler):

    def get(self):
        self.write('Hello, World!')


class MyApp(Application):

    def init_handlers(self):

        self.handlers = [
            (r'/', IndexHandler)
        ]

Then start the web server:

python application.py

Metadata

Release files for tornadobase 0.1.7

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

Source distribution (sdist)

Source distribution for tornadobase 0.1.7
File Size Uploaded
tornadobase-0.1.7.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tornadobase 0.1.7
File Interpreter ABI Platform
tornadobase-0.1.7-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 9.5 kB

Release files / tornadobase-0.1.7.tar.gz

Download URL tornadobase-0.1.7.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
813c2be244ca4c0d94308b13e968ea6bca08abdfe61977c3172fab69b2e1aca8
BLAKE2b-256 checksum
How to use checksums
c58302c95e3adc78a25c40fb32e11d1d0f9ecc10bee2d69f782139a179a9d44b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / tornadobase-0.1.7-py2.py3-none-any.whl

Download URL tornadobase-0.1.7-py2.py3-none-any.whl
Size 5.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
95b41572fabdd3fddc8c78699942f2d12b6fb7ce21d8b3733ddb719559a74d77
BLAKE2b-256 checksum
How to use checksums
44036fb3c7142ba25e46b6402327455faff6c66c128a1334031c8b145f753644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

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