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.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for buildington-1.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8a3cc174aff844f57a1fa05b6e1691078e14c9cda79d94dd9cb7e48c8c7dab5 |
|
MD5 | a69d91b557c01c09f46f3ab02df5e0a0 |
|
BLAKE2b-256 | 922c9292fbbe2449898146dd066d0e2aa03ba08220fc40a188c1bd02b739b93b |