The tools that power the canopy
Project description
██╗ ██╗███╗ ██╗██████╗ ███████╗██████╗ ███████╗████████╗ ██████╗ ██████╗ ██╗ ██╗
██║ ██║████╗ ██║██╔══██╗██╔════╝██╔══██╗██╔════╝╚══██╔══╝██╔═══██╗██╔══██╗╚██╗ ██╔╝
██║ ██║██╔██╗ ██║██║ ██║█████╗ ██████╔╝███████╗ ██║ ██║ ██║██████╔╝ ╚████╔╝
██║ ██║██║╚██╗██║██║ ██║██╔══╝ ██╔══██╗╚════██║ ██║ ██║ ██║██╔══██╗ ╚██╔╝
╚██████╔╝██║ ╚████║██████╔╝███████╗██║ ██║███████║ ██║ ╚██████╔╝██║ ██║ ██║
╚═════╝ ╚═╝ ╚═══╝╚═════╝ ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝
An IndieWeb-compatible personal website
Install Poetry.
Clone your empty website repository and descend into it. If you use a private GitHub repository your changes will be deployed through GitHub. If you use a public repository your changes will be deployed through PyPI.
Initialize your project and add understory as a dependency.
poetry init
poetry add understory
Create a file site.py
:
from understory import indieweb
app = indieweb.personal_site(__name__)
Serve your website locally in development mode:
poetry run web serve site:app
Open localhost:9000 in your browser.
Develop. For example, add a custom route:
import random
@app.route(r"hello")
class SayHello:
return random.choice(["How you doin'?", "What's happening?", "What's up?"])
To publish:
poetry run pkg publish patch
To deploy:
poetry run gaea deploy site:app alice.anderson.example
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
understory-0.0.67.tar.gz
(512.4 kB
view hashes)
Built Distribution
understory-0.0.67-py3-none-any.whl
(555.0 kB
view hashes)
Close
Hashes for understory-0.0.67-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da5592d7bb071aa7f857b0bb36230ba0324f5d199776e1ac7c18dca2fa52c6bb |
|
MD5 | f266836854dcbbaca48d9f2871c4d7a5 |
|
BLAKE2b-256 | 3036ed029cc10e5d8c4f625192429c29adc92e0e048f5011552c6d1ca572c7ad |