Skip to main content

Web framework with IndieWeb support

Project description

understory

Web framework with IndieWeb support

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.69.tar.gz (511.8 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.69-py3-none-any.whl (554.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: understory-0.0.69.tar.gz
  • Upload date:
  • Size: 511.8 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.69.tar.gz
Algorithm Hash digest
SHA256 40b5e6813a564b9e8fe0b88bf1464bed7fe55ae02133f927ffc8d85654d93676
MD5 91d61323f35814a2020feb920b34dd5e
BLAKE2b-256 215310a21f1101385d8c26a1e196d63ff0931e129c1b95129964133858a90640

See more details on using hashes here.

File details

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

File metadata

  • Download URL: understory-0.0.69-py3-none-any.whl
  • Upload date:
  • Size: 554.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.69-py3-none-any.whl
Algorithm Hash digest
SHA256 bdbdd507bb5277d1fdc07bf278932cfe1c0d9243be56bab5a723f1420fc3f65d
MD5 71cad5569a233c4e4ca9228e19dafc6c
BLAKE2b-256 efa74dea7aaf1b44f002330f2b85887d7f2f4f8535afafefc0817e09643ef607

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