A Flask adapter for the RouteLit framework, enabling seamless integration of RouteLit's reactive UI components with Flask web applications
Project description
RouteLit Flask Adapter
A Flask adapter for the RouteLit framework, enabling seamless integration of RouteLit's reactive UI components with Flask web applications.
Installation
pip install routelit routelit-flask
Usage
from flask import Flask
from routelit import RouteLit, RouteLitBuilder
from routelit_flask import RouteLitFlaskAdapter
app = Flask(__name__)
routelit = RouteLit()
routelit_adapter = RouteLitFlaskAdapter(routelit).configure(app)
def build_index_view(rl: RouteLitBuilder):
rl.text("Hello, World!")
@app.route("/", methods=["GET", "POST"])
def index():
return routelit_adapter.response(build_index_view)
Mantained by @rolangom.
Repository initiated with fpgmaas/cookiecutter-uv.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file routelit_flask-0.4.3.tar.gz.
File metadata
- Download URL: routelit_flask-0.4.3.tar.gz
- Upload date:
- Size: 74.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89efff63caf146558f259c7fca15dfe737a741ef3f63f3ea404e4c2e8b3e438c
|
|
| MD5 |
1e73437fefb0ede3c20fdbb2f3a4fb40
|
|
| BLAKE2b-256 |
75e822c3d58ceab648ee503bb53971f378d303886ea906dfa3d21fe29ad22c0e
|
File details
Details for the file routelit_flask-0.4.3-py3-none-any.whl.
File metadata
- Download URL: routelit_flask-0.4.3-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2fb5314b0e0e5ec4ce4a65484e954f76e85d08fa42ec3bdafa0cac647aebccd
|
|
| MD5 |
68a288f2e7135e4d6aa6cf954603c597
|
|
| BLAKE2b-256 |
a234815301d7cf2d5e6c4d8f46aeb22888d7eb063a4b1a335b7de24016ff3093
|