Building websites like React, and hosting 'em like Flask!
Project description
++--------------------------------------++
++--------------------------------------++
|| |) . | + . + ||
|| |+ | | | | +-+ | +-+ +-+ -+- +-+ +-+ ||
|| |) +-+ | | +-+ | | | +-+ + +-+ | | ||
|| | ||
|| -+ ||
|| By RixTheTyrunt ||
++--------------------------------------++
++--------------------------------------++
You can use the [buildington.page] decorator and/or the [buildington.addFile] method to add a route to your website. Here's an example of both:
+------------------------------------------------------------------------------+
| Python |
+------------------------------------------------------------------------------+
| import buildington |
| |
| buildington.addFile("README.txt") |
| @buildington.page("/") |
| def index(): |
| return ( |
| buildington.Para("Hippity hoppity your website is now my property"), |
| ) |
| |
| buildington.start("0.0.0.0", 8080) |
+------------------------------------------------------------------------------+
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 Distribution
buildington-1.4.3.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for buildington-1.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f7c91cb4b718a77a577cb4301b9c906e85c12de01da5913ceba5bd0c4bc9618 |
|
MD5 | 653ea3d5c93a55d026c661eb0ecaaa76 |
|
BLAKE2b-256 | 9e67cca975e5efd91d0b92d513f8b62314d25d01484733e40686ee639944b120 |