Skip to main content

TivelWeb

TivelWeb is a lightweight Python library for building responsive static websites without writing all the HTML and CSS yourself.

Install locally

cd tivelweb
python -m venv .venv
source .venv/bin/activate
pip install -e .

Build your first website

from tivelweb import Site, hero, section

site = Site("My Website", theme_color="#6c5ce7")
home = site.page("Home", description="My first Python website")
home.add(hero("Welcome", "This website was built using Python.", "Learn more", "#about"))
home.add(section("About", "TivelWeb generates fast static HTML."))
site.build()

Run the file, then preview the generated dist folder:

python app.py
tivelweb serve dist

Open http://127.0.0.1:8000.

Commands

tivelweb new mywebsite
cd mywebsite
python app.py
tivelweb serve dist

Features

  • Responsive pages and navigation
  • Hero, section, card, button, and image components
  • Multiple pages
  • Custom theme colors
  • Static asset copying
  • Built-in local preview server
  • No runtime dependencies
  • Built-in responsive news website template

News website template

from tivelweb import create_news_site

site = create_news_site(
    name="Tivals News",
    output="news_website",
    theme_color="#d71920",
)
python app.py
tivelweb serve news_website

Test

python -m unittest discover -s tests

License

MIT

Metadata

Release files for tivelweb 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tivelweb 0.2.0
File Size Uploaded
tivelweb-0.2.0.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tivelweb 0.2.0
File Interpreter ABI Platform
tivelweb-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / tivelweb-0.2.0.tar.gz

Download URL tivelweb-0.2.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a021ed259037a79cde52cf60d63496606030c44f234f2b1ef615f7193e934bdf
BLAKE2b-256 checksum
How to use checksums
3f5293eacb1eb2fc2a12a8b0781ad3c0ffe42db2bbbc6d0e8042820b7724f79a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.

Transparency log

Release files / tivelweb-0.2.0-py3-none-any.whl

Download URL tivelweb-0.2.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fed8654292509c1e7fed0d369829b007e26d3adf8c610f4a3df8d2d0c3c981bc
BLAKE2b-256 checksum
How to use checksums
488bfcd2492688c862d362f854cedcefd2b51df186040847e574bb67361f4b2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.0

2 release files

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page