Web framework to generate web-based applications in pure python
Project description
RapidHTML
A project for developing web apps totally in Python
Example
from rapidhtml import RapidHTML
from rapidhtml.tags import *
app = RapidHTML(
html_head=[Link(rel="stylesheet", href="https://matcha.mizu.sh/matcha.css")]
)
@app.route('/')
async def homepage(request):
return Html(
Div(
H1('Hello, world!'),
Button('Click me', id='button', hx_get='/data'),
)
)
@app.route('/data')
async def data(request):
return "Clicked!"
app.serve(port=8001)
This will serve the app at http://localhost:8000
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rapidhtml-0.1.0.tar.gz
(17.5 kB
view details)
Built Distribution
rapidhtml-0.1.0-py3-none-any.whl
(19.1 kB
view details)
File details
Details for the file rapidhtml-0.1.0.tar.gz
.
File metadata
- Download URL: rapidhtml-0.1.0.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 821d3eceb33019ffd77d7e46eb270845cea1c14ca2167d4ce33fa2408d3d857e |
|
MD5 | 88d385e787958f5f2203b461d0afe00d |
|
BLAKE2b-256 | 23ebb2e0af8b86c315cc5f39d60d2040c7aabf4b8f94bdf4b3459e2aa71ebd58 |
File details
Details for the file rapidhtml-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: rapidhtml-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2685e26d8920b290b624a7dbfaec59b5b214bc2b72269d05f15a66b64fba8c5f |
|
MD5 | 32e6ffbfbe08f99d5feace7a5a742315 |
|
BLAKE2b-256 | 6ada9afc020ea33ecd66bd43e7fe6d4a2adcfa4e382d8ab6164259de2e4f3417 |