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.1.0.tar.gz (71.3 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.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for routelit_flask-0.1.0.tar.gz
Algorithm Hash digest
SHA256 48b6c7746fc1dcf7a6723f324a97765eba6f86e6c8d78c2135fa01e7d78931fd
MD5 45907e47a10ad5bdab9e7c556d415e7b
BLAKE2b-256 4ca83b4ca4d49e7545f9ce47bb5a7b0595355afbdcd09b1e0da16c85789e33ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for routelit_flask-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c3b2b5243fb616c22120e7178603d4d13b4e3369e7f407f538f8ee973fcf14e
MD5 b787a21d3cbd0e94591acf2b8c3a5136
BLAKE2b-256 e82fb0faee4ec23583235a80c17e7a7001f5b43ee7abde91c608d8582af8d281

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