Metadata-Version: 2.1
Name: rapidhtml
Version: 0.1.1
Summary: Web framework to generate web-based applications in pure python
Author: ThomasJRyan
Author-email: 18319621+ThomasJRyan@users.noreply.github.com
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: httpx (>=0.27.0,<0.28.0)
Requires-Dist: starlette (>=0.40.0,<0.41.0)
Requires-Dist: uvicorn[standard] (>=0.30.5,<0.31.0)
Description-Content-Type: text/markdown

# 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

```py
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
