Skip to main content

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.59.tar.gz (497.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

understory-0.0.59-py3-none-any.whl (527.9 kB view details)

Uploaded Python 3

File details

Details for the file understory-0.0.59.tar.gz.

File metadata

  • Download URL: understory-0.0.59.tar.gz
  • Upload date:
  • Size: 497.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/4.19.0-17-amd64

File hashes

Hashes for understory-0.0.59.tar.gz
Algorithm Hash digest
SHA256 a54845c34799733a45383a36631848d35e29e1628d30a6caafa17b8b1969a22b
MD5 4c0e33bef1261396c60a751f1104e036
BLAKE2b-256 27a3330a0bf81c18207a89f45c5a2ceb447c5608b491549662090725b44acb34

See more details on using hashes here.

File details

Details for the file understory-0.0.59-py3-none-any.whl.

File metadata

  • Download URL: understory-0.0.59-py3-none-any.whl
  • Upload date:
  • Size: 527.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/4.19.0-17-amd64

File hashes

Hashes for understory-0.0.59-py3-none-any.whl
Algorithm Hash digest
SHA256 834e163c9acaf1e0b06a9e4c1e7efd4e0a38e53846267021a1e0d2db452a3cad
MD5 59b2ed9029c2d17b30e33a12237bf328
BLAKE2b-256 ded23aacf38377a6ddd86b2b28681bef83fa958747781c3558946ef25a1b606b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page