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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file buildington-1.6.tar.gz.
File metadata
- Download URL: buildington-1.6.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cde1ddeb28e8012e45c84a327550b9ff95b172cc0989ff844b1a391fdd597773
|
|
| MD5 |
fadfdcc5a06268dbdf6ed32e78409f5c
|
|
| BLAKE2b-256 |
7d2b31b017427b65ed09d94bde3f4ad6790f8b54817dc117e2977f4fa4309e7a
|
File details
Details for the file buildington-1.6-py3-none-any.whl.
File metadata
- Download URL: buildington-1.6-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5b73100445db46c6ccb809125f7a4c7d1680c2ccb3c483b800285169aebb07a
|
|
| MD5 |
947bb013f7bcf14e990cb308308c64fb
|
|
| BLAKE2b-256 |
ef17109b2d4a31a71207824ec80177eea44f6d40ccb232a699feebf737011e06
|