Skip to main content

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):

  1. Create an account on https://test.pypi.org/ and generate an API token.
  2. Set the API token as environment variables, for example (Powershell):
$Env:TWINE_USERNAME = "__token__"
$Env:TWINE_PASSWORD = "pypi-AgENdGVzdC..."
  1. 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

jusu-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jusu-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

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

Hashes for jusu-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f6bd8f43ca26f17e5d27415e305fb47eeb456e8d66d7dba8ea4b9117bcc3bc10
MD5 a1c2d9497a552499ed1e565281abe2e9
BLAKE2b-256 ca8232007725da942803420516b3dfaedd472ba83bbe18917fe695ab83c94bf9

See more details on using hashes here.

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

Hashes for jusu-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba56b6bd2648dd2c933bfdbf467ca5378842d01ece4614a67d7136b91e46b7dc
MD5 8bced4ad315f4c99db0e86ea0e75d92e
BLAKE2b-256 aecdcbfb428d1c7a57a2d47250d03399c9dc27e4b07e25f8dd7bd0bd2aa80dd3

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