Skip to main content

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

Release Build status codecov Commit activity License

Routelit

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

routelit_flask-0.4.1.tar.gz (73.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

routelit_flask-0.4.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file routelit_flask-0.4.1.tar.gz.

File metadata

  • Download URL: routelit_flask-0.4.1.tar.gz
  • Upload date:
  • Size: 73.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for routelit_flask-0.4.1.tar.gz
Algorithm Hash digest
SHA256 c29551cb3868394a273ea39ba9e3b0d86148a0a2ca4b2469cb1ab76ec29515b9
MD5 5f9199574450d06a2f6f757df4788c72
BLAKE2b-256 647a0ff0361090a9604935c328cf2a524e6af3705a097aba8c6e5b57f2aaf75e

See more details on using hashes here.

File details

Details for the file routelit_flask-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for routelit_flask-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07fdf5df74c3d8a7d7e1ecfa03749cf25d2cd25744d2665764b4ff9cf5db1809
MD5 b63e3db5c96620989e0892666ecc20f7
BLAKE2b-256 509c522761da4b6f6832f6abde3b4a3c203b8da6345131f4151813ad3d913da9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page