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.1.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.5.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: routelit_flask-0.5.1.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.5.1.tar.gz
Algorithm Hash digest
SHA256 936e6a94dba842dfbbf3be70393783f559764b6609511c623b534d8f1662fc2d
MD5 591a6329bd4757b939c1be19ba161bdd
BLAKE2b-256 794c5697e9f40bce7dfb1daf0802b3537f3664abec9f312a9b0a95577695c871

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for routelit_flask-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d125f34a46c1a977ca63f2c1db4cd02b23eb99021d2b15623f36d6e2622883e8
MD5 46d2ec2d7cd81e3a0480ed3b28b658c4
BLAKE2b-256 2072d55bc6c3f1d9573a3a6510091b2156121434f360cda26aa99ec78c4e4303

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