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.5.2.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for buildington-1.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad6e1a89c219d6538ac4a038c9b931fa5b73368249fe5135c51e8485505a1c8d |
|
MD5 | 20ebbcea7e119bfa4c1ac9fa4094eacf |
|
BLAKE2b-256 | fad3cc2a9916f3ce1cdf248d8dffa093bac205238df0691b345725ef65632f50 |