Python module writing class-based route handlers in bottle.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
File details
Details for the file bottle-streamline-1.0.post3.zip
.
File metadata
- Download URL: bottle-streamline-1.0.post3.zip
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bf6517a107286143a70e406d715a6d0d96f5a589902762d73c168a81e98ca26 |
|
MD5 | 80c5f131cfc209f46671614f7443f2cd |
|
BLAKE2b-256 | c6f67c762f75b445bb5ca0d603270f165715032a6e20487c0afd5b09a4fd5320 |
File details
Details for the file bottle-streamline-1.0.post3.tar.gz
.
File metadata
- Download URL: bottle-streamline-1.0.post3.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6ed02a538ee40b259eb603fe421912f6240c0c170f213af1b0e57e36d76d76e |
|
MD5 | 545fd99f9d70f80d2203e6eb76fce194 |
|
BLAKE2b-256 | 44dab9dac690f91ed01c97293d630e769ccd19222df2e05de429deb93bd8e78c |