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.62.tar.gz (509.5 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.62-py3-none-any.whl (549.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: understory-0.0.62.tar.gz
  • Upload date:
  • Size: 509.5 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.62.tar.gz
Algorithm Hash digest
SHA256 1eb96c5871e0687cec4b46f018e56c7cc40117323d99c08a84ccf5b723728e7f
MD5 dd43f17e114e0d40d14ff11dae57b938
BLAKE2b-256 0f5464ee55b6bcc3a42557b7517e225211da0be512f3bad8a7df3d45017714fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: understory-0.0.62-py3-none-any.whl
  • Upload date:
  • Size: 549.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.62-py3-none-any.whl
Algorithm Hash digest
SHA256 145c5dc38a63008e21e352ee7c8def7c890b05845befccbbae354754640e6d63
MD5 a502e9f3a6ba03e66574260951ced917
BLAKE2b-256 c54768ae8f6dab6b669b70223b5b2eb5de88bbdd1ac56ae6dc33d3530046c5dc

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