A full-featured minimalist web framework.
Project description
understory
A full-featured minimalist web framework
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file understory-0.0.80.tar.gz.
File metadata
- Download URL: understory-0.0.80.tar.gz
- Upload date:
- Size: 481.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3eeffeff6de05ee7892277d7d48f922bd36cdd0afcb36c5d83e5b54c8aecbc8e
|
|
| MD5 |
6ece35695b5be946efe15b6ea85f5636
|
|
| BLAKE2b-256 |
a0452a8e7e92c2c4a03ea0c1c2dea618c8269c299a0f8a51d6d9383162676435
|
File details
Details for the file understory-0.0.80-py3-none-any.whl.
File metadata
- Download URL: understory-0.0.80-py3-none-any.whl
- Upload date:
- Size: 513.6 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36dea6aff7a21e126db06096f12b672c77803460c5e3d2708a6ff6201854c2b8
|
|
| MD5 |
df7985c13300a7940adab1df72076e05
|
|
| BLAKE2b-256 |
f5df616e4bf8646aad6d7b2c623686925955edbb49463147d37e89e6881a8ce4
|