Skip to main content

Python module writing class-based route handlers in bottle.

Project description

Documentation Status Development documentation Status

This project is a collection of classes for writing complex, modullar, and/or reusable route handlers using bottle web framework.

Even though ‘complex route handlers’ may seem like an oximoron, there may be situations where support for multiple parameters are needed or where a simple branching in the route handler code may completely change the logic of your route handler. If you find yourself running into this type of situation and struggle to organize the code, you may find bottle-streamline is a good fit for your project.

Quick example

Example of a classic Hello world app:

import bottle
from streamline import RouteBase


class Hello(BaseRoute):
    def get(self):
        return 'Hello world!'


Hello.route('/')
bottle.run()

Documentation

You will find the complete documentation and tutorials on ReadTheDocs.

Project details


Download files

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

Source Distributions

bottle-streamline-1.0.post3.zip (12.6 kB view details)

Uploaded Source

bottle-streamline-1.0.post3.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file bottle-streamline-1.0.post3.zip.

File metadata

File hashes

Hashes for bottle-streamline-1.0.post3.zip
Algorithm Hash digest
SHA256 6bf6517a107286143a70e406d715a6d0d96f5a589902762d73c168a81e98ca26
MD5 80c5f131cfc209f46671614f7443f2cd
BLAKE2b-256 c6f67c762f75b445bb5ca0d603270f165715032a6e20487c0afd5b09a4fd5320

See more details on using hashes here.

File details

Details for the file bottle-streamline-1.0.post3.tar.gz.

File metadata

File hashes

Hashes for bottle-streamline-1.0.post3.tar.gz
Algorithm Hash digest
SHA256 d6ed02a538ee40b259eb603fe421912f6240c0c170f213af1b0e57e36d76d76e
MD5 545fd99f9d70f80d2203e6eb76fce194
BLAKE2b-256 44dab9dac690f91ed01c97293d630e769ccd19222df2e05de429deb93bd8e78c

See more details on using hashes here.

Supported by

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