Skip to main content

Social web framework.

Project description

understory

Social web framework

A basic website

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.82.tar.gz (543.7 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.82-py3-none-any.whl (575.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for understory-0.0.82.tar.gz
Algorithm Hash digest
SHA256 19db8bd8611d43ec7d55206e4a8b416fd8c0df01c0018bc6d03e20f98707b309
MD5 df3b493ea97c8a039619b873b8b147c5
BLAKE2b-256 329b8389319ceb3ad9b46d46260df2f91c4f6ab680afff180a5a820e87cecb87

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for understory-0.0.82-py3-none-any.whl
Algorithm Hash digest
SHA256 b942098854791e71e2d882f835dd3d06e88d1ff92b7778d6006d595fb68812d2
MD5 80740b06445221bdb5c6e2d1c4708fa0
BLAKE2b-256 7ebc8eb08cf424a68bf0328f779ac4edfbdd2be6dbd7c49717def0eb2c95a0dc

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