Skip to main content

This is a template repository for Python projects that use uv for their dependency management.

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.0.2.tar.gz (70.9 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.0.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for routelit_flask-0.0.2.tar.gz
Algorithm Hash digest
SHA256 eecb1a11165713d8dd624be179a2da3941174a0fbd29b39e8092ae5b3e96a7b2
MD5 385a51cc04d9407675664a782b9c67c4
BLAKE2b-256 c727e98fd0540aa664bd7670d8018b00ff44c20e101f56c0c9b14dc7f2e96bbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for routelit_flask-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b1fd7a1e9c4fc0e04ea37dda66abb85feef0c1645dc9d25961a931f6f238204e
MD5 47acfe11dae9235a7f62b8f2e70618d1
BLAKE2b-256 f6b066a0f7b8f78c2d098145936bb28991eed316aa50c71657215371a3bf979d

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