The tools that power the canopy
Project description
understory
Tools to power your personal website
An IndieWeb-compatible personal website packaged and deployed
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.site()
Add your site's app as an entry point in your pyproject.toml
:
poetry run web install site:app AliceAnderson
Serve your website locally in development mode:
poetry run web serve AliceAnderson
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 web deploy
██╗ ██╗███╗ ██╗██████╗ ███████╗██████╗ ███████╗████████╗ ██████╗ ██████╗ ██╗ ██╗
██║ ██║████╗ ██║██╔══██╗██╔════╝██╔══██╗██╔════╝╚══██╔══╝██╔═══██╗██╔══██╗╚██╗ ██╔╝
██║ ██║██╔██╗ ██║██║ ██║█████╗ ██████╔╝███████╗ ██║ ██║ ██║██████╔╝ ╚████╔╝
██║ ██║██║╚██╗██║██║ ██║██╔══╝ ██╔══██╗╚════██║ ██║ ██║ ██║██╔══██╗ ╚██╔╝
╚██████╔╝██║ ╚████║██████╔╝███████╗██║ ██║███████║ ██║ ╚██████╔╝██║ ██║ ██║
╚═════╝ ╚═╝ ╚═══╝╚═════╝ ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝
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.46.tar.gz
(495.2 kB
view hashes)
Built Distribution
understory-0.0.46-py3-none-any.whl
(525.8 kB
view hashes)
Close
Hashes for understory-0.0.46-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f58dccb467167877e92506a8bc9c6036031aa5b2a832368f47077d891b6eb595 |
|
MD5 | ab526e0a8a4a8071f1d13dd3da18e66b |
|
BLAKE2b-256 | 8540799ef9e71cdb836cef69d2d960ac5588c80631195a7c0d324c5668a6b7e5 |