Build HTML pages in Python — simple, readable, and beginner-friendly.
Project description
JUSU
JUSU is a tiny Python library to build HTML pages using a simple, readable plain-English style API. It is made for beginners, educators, and quick prototyping.
Quick usage:
from JUSU import Div, H1, P, Button, Img
page = Div(
H1("Welcome to JUSU"),
P("A tiny HTML builder."),
Button("Click me", onclick="alert('Hello')", cls="btn"),
Img(src="https://via.placeholder.com/150", alt="demo"),
cls="container"
)
page.render_to_file("jusu_demo.html")
Run tests:
python -m pytest
Install:
pip install -e .
License: MIT
Publish to TestPyPI (recommended first):
- Create an account on https://test.pypi.org/ and generate an API token.
- Set the API token as environment variables, for example (Powershell):
$Env:TWINE_USERNAME = "__token__"
$Env:TWINE_PASSWORD = "pypi-AgENdGVzdC..."
- Build and upload to TestPyPI:
python -m build -o dist
python -m twine check dist/*
python -m twine upload --repository testpypi dist/*
Publish to PyPI (after verifying TestPyPI):
python -m twine upload dist/*
If you prefer to specify the username and token directly instead of environment variables, pass --username and --password to twine upload, but environment variables are more secure.
JUSU
Project details
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 jusu-0.1.0.tar.gz.
File metadata
- Download URL: jusu-0.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6bd8f43ca26f17e5d27415e305fb47eeb456e8d66d7dba8ea4b9117bcc3bc10
|
|
| MD5 |
a1c2d9497a552499ed1e565281abe2e9
|
|
| BLAKE2b-256 |
ca8232007725da942803420516b3dfaedd472ba83bbe18917fe695ab83c94bf9
|
File details
Details for the file jusu-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jusu-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba56b6bd2648dd2c933bfdbf467ca5378842d01ece4614a67d7136b91e46b7dc
|
|
| MD5 |
8bced4ad315f4c99db0e86ea0e75d92e
|
|
| BLAKE2b-256 |
aecdcbfb428d1c7a57a2d47250d03399c9dc27e4b07e25f8dd7bd0bd2aa80dd3
|