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.2.0.tar.gz (67.8 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.2.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for routelit_flask-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ab2c180b35e298bd276348624b8fbb70d4bad2652ba2711f9865fd5cf92b0482
MD5 9dd6db2890125afa1afafed3aba504ae
BLAKE2b-256 53af626b2c9b07e0ede7ec1a3cdbd9066329afd43a55a04c97073dc4d3392086

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for routelit_flask-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 981e566c24767f8d35815dcc562c7890d950fc889de73089ed53e4765719cfd4
MD5 c3babcc718cc38bd1b52209d3a9df395
BLAKE2b-256 2e068f3eac2a7b929c7153117206dae3079680f1b68bd4d31b3cd13a92559a7a

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