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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for routelit_flask-0.5.0.tar.gz
Algorithm Hash digest
SHA256 dd7b662f30ce89ee38e42899ec8be43306dd2ff190d729aa0112091a1a2419a5
MD5 55800eb9f36b32bb83cd1ed98500712b
BLAKE2b-256 88dd16f4868a753a6184b149ca231a18eaa6a3b9d155425f4a549c6e64a9ecab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for routelit_flask-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91ee8b5bdaa9fe2a2d24b834a2ce32cf5da3cd477761cbc4ac18820019e818e4
MD5 6d2fd69326213e4834e68a557b070851
BLAKE2b-256 437a6bbc4cd210a15c3a5174080251e1ae7e16a05b09e917398c01f4d178e3c6

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