Skip to main content

RapidHTML

A PEP8-compliant, well documented and typehinted framework for creating web apps in a purely Pythonic way. Powered by Javacsript frameworks like HTMX, and with CSS built-in, write more Python and less of everything else.

Example

from rapidhtml import RapidHTML
from rapidhtml.tags import *

app = RapidHTML(
    html_head=[Link(rel="stylesheet", href="https://matcha.mizu.sh/matcha.css")]
)

async def clicked_callback():
    return "Clicked!"

@app.route('/')
async def homepage(request):
    return Html(
        Div(
            H1('Hello, world!'),
            Button('Click me', callback=clicked_callback, id='button'),
        )
    )

if __name__ == "__main__":
    app.serve()

This will serve the app at http://localhost:8000

Release files for rapidhtml 0.1.1

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

Source distribution (sdist)

Source distribution for rapidhtml 0.1.1
File Size Uploaded
rapidhtml-0.1.1.tar.gz 27.0 kB Details

Built distribution (wheel)

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

Total release size: 56.7 kB

Release files / rapidhtml-0.1.1.tar.gz

Download URL rapidhtml-0.1.1.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
52de6af08bedee36d4f22de9c43add305ba465eb5eaba525eb698c33479e6a30
BLAKE2b-256 checksum
How to use checksums
ee55e611b292608e8b9ee5ff92f30988df86d4a1c235da02ec08eae2ae9cbc24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / rapidhtml-0.1.1-py3-none-any.whl

Download URL rapidhtml-0.1.1-py3-none-any.whl
Size 29.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4947c5311108ce3777967add91b3c73aff76ec93237decd6ed7082ed121972cf
BLAKE2b-256 checksum
How to use checksums
74777d8fd0cb24a89eeb3d77485057dc33bd04f0b7bf4305f0d866b96d5c65b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release history Release notifications | RSS feed

This release

0.1.1 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