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
  • Portfolio, business and blog templates
  • Ocean, sunset, forest, midnight and rose style presets

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

More templates

from tivelweb import create_portfolio_site, create_business_site, create_blog_site

create_portfolio_site(name="Tivalsdeveloper", style="midnight")
create_business_site(name="Tivals Digital", style="ocean")
create_blog_site(name="Tivals Blog", author="Lufuno", style="rose")

Style presets

from tivelweb import Site, style_preset, theme_color

site = Site("My Site", theme_color=theme_color("forest"))
home = site.page("Home")
home.add(style_preset("forest"))
site.build()

Test

python -m unittest discover -s tests

License

MIT

Metadata

Release files for tivelweb 0.3.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.3.0
File Size Uploaded
tivelweb-0.3.0.tar.gz 10.0 kB Details

Built distribution (wheel)

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

Total release size: 20.6 kB

Release files / tivelweb-0.3.0.tar.gz

Download URL tivelweb-0.3.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b5377cddccc6a8acbb9cd82f84115c81d9f835acdecaf83c9452dfc0accac0c5
BLAKE2b-256 checksum
How to use checksums
90bdae7b037eb0d1c8d4f128399b7ba3411fbceb1c5b30d8465707c1ebb9c2b5
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.3.0-py3-none-any.whl

Download URL tivelweb-0.3.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff392e3f697e551421a137e8e0c404712aa5d2154ff756677b021ed44f36f8c3
BLAKE2b-256 checksum
How to use checksums
6333d7119ed5934a206863dd3b23a87f9839dc1f84b97b4fd48b694b8c8a83b1
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

This release

0.3.0 This release

2 release files

0.2.0

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