Skip to main content

bslibreact (Python)

Lifecycle: experimental

Server helpers for bslibreact: a React component kit that reproduces the exact markup bslib and Shiny render, for apps built with shinyreact's ui.tsx pattern. This package is the Python half. It ships no UI of its own; the components live in the npm package bslibreact.

Install

pip install bslibreact shinyreact

Use

from pathlib import Path
from shiny import App, render, ui
from shinyreact import page_react
from bslibreact import page_deps, host_input

app_theme = (
    ui.Theme.from_brand(Path(__file__).parent)
    if (Path(__file__).parent / "_brand.yml").exists()
    else ui.Theme()
)
app_ui = page_react(page_deps(app_theme), title="Demo", theme=app_theme)


def server(input, output, session):
    host_input(output, "bins", lambda: ui.input_slider("bins", "Bins", 1, 50, 30))


app = App(app_ui, server)

page_deps() attaches the CSS and JS that bslibreact's React components need at runtime (ion.rangeSlider, selectize, and friends), the same way a plain bslib page would pick them up automatically. A client with no build step also attaches bslibreact_dep(), the prebuilt component bundle it reads as window.bslibreact. host_input() mounts one server-rendered Shiny widget (here, a slider) inside a React page and hands back the output id your <SliderInput id="bins_ui" /> element should read.

See the root README for the full picture across R, Python and JS, and docs/ in the repository for the porting guide and the markup catalog spec this package's catalog renderer implements.

Metadata

Release files for bslibreact 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bslibreact 0.1.0
File Size Uploaded Provenance Actions
bslibreact-0.1.0.tar.gz 18.2 kB With provenance Details for bslibreact-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bslibreact 0.1.0
File Interpreter ABI Platform Actions
bslibreact-0.1.0-py3-none-any.whl Python 3 none any Details for bslibreact-0.1.0-py3-none-any.whl

Total release size: 38.2 kB

Release files / bslibreact-0.1.0.tar.gz

Download URL bslibreact-0.1.0.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e0b2ea6ebcb9d1c4bd4ad0ceb0e820b212809b3d1b13f2413d458a8a2cbb3c87
BLAKE2b-256 checksum
How to use checksums
94e947503fab1ec254e77bd2cf53879e0ad63eab57049f557990e2670a2e1a38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / bslibreact-0.1.0-py3-none-any.whl

Download URL bslibreact-0.1.0-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe98c98d16e6e69d8bc203bb790e0083375fd04d1b2a2af399c0bcc7d6a14246
BLAKE2b-256 checksum
How to use checksums
7e1a32282bcbfc09dc6a7f0e09dfd2486bd89b622e31ade46fcb9669938ba271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for bslibreact 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bslibreact-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page