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.3.tar.gz (74.0 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.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for routelit_flask-0.4.3.tar.gz
Algorithm Hash digest
SHA256 89efff63caf146558f259c7fca15dfe737a741ef3f63f3ea404e4c2e8b3e438c
MD5 1e73437fefb0ede3c20fdbb2f3a4fb40
BLAKE2b-256 75e822c3d58ceab648ee503bb53971f378d303886ea906dfa3d21fe29ad22c0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for routelit_flask-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c2fb5314b0e0e5ec4ce4a65484e954f76e85d08fa42ec3bdafa0cac647aebccd
MD5 68a288f2e7135e4d6aa6cf954603c597
BLAKE2b-256 a234815301d7cf2d5e6c4d8f46aeb22888d7eb063a4b1a335b7de24016ff3093

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