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.6.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for buildington-1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5b73100445db46c6ccb809125f7a4c7d1680c2ccb3c483b800285169aebb07a |
|
MD5 | 947bb013f7bcf14e990cb308308c64fb |
|
BLAKE2b-256 | ef17109b2d4a31a71207824ec80177eea44f6d40ccb232a699feebf737011e06 |