shiny
A web development framework for Python.
What it is and what it does
Shiny for Python is a web framework designed to let Python developers build fast, interactive web applications without needing to write JavaScript or HTML directly. It uses reactive programming—a model where the UI automatically updates when underlying data changes—to simplify the logic of building responsive applications. The framework ships with a CLI tool for scaffolding new projects and a development server with hot-reload support.
It sits on top of modern web infrastructure: uvicorn and starlette handle the HTTP server, websockets enable real-time communication, and htmltools manages the UI rendering. The package includes 21 runtime dependencies covering async I/O, data handling (narwhals for dataframe abstraction, orjson for JSON serialization), and interactive components. It supports Python 3.10 through 3.14 and is actively maintained, with deployment options to multiple cloud platforms.
Use it for:
- Build interactive dashboards and data exploration tools for analysts and stakeholders without learning web development.
- Prototype data science applications quickly, then extend them into production-grade systems using modular architecture.
- Create real-time monitoring and reporting applications that update automatically as underlying data changes.
- Develop internal tools and admin interfaces that integrate with Python data pipelines and databases.
- Build educational or scientific applications that visualize complex computations and let users interact with parameters.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Shiny for Python is a web development framework that lets you build interactive web applications in Python, combining reactive programming with a modern web stack to create data-driven UIs without writing JavaScript.
Yes. Shiny is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive MIT license. It's well-suited for developers who want to build web applications in Python without learning JavaScript. The 21 runtime dependencies are justified by reliance on proven web libraries (starlette, uvicorn) rather than custom implementations. Choose it if you need reactive, interactive web UIs; if you need a lightweight REST API or static site, a simpler framework may be better.
Install
shiny on PyPI
pip
pip install shinyuv
uv add shinypoetry
poetry add shinyInstalling shiny
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release and steady repository activity. The 21 runtime dependencies are well-established web and data libraries (uvicorn, starlette, websockets, narwhals), suggesting a stable, production-ready stack.
License in practice
MIT license is permissive, allowing free use, modification, and distribution in both open-source and commercial projects with minimal restrictions.
Quickstart
pip install shiny
from shiny import App, render, ui
app = App(
ui.page_fluid(
ui.input_slider("n", "N"),
ui.output_text("txt")
),
None
)
@app.server
def server(input, output, session):
@output
@render.text
def txt():
return f"n is {input.n()}"
app.run()
Requires Python 3.10 or later.
Verify before relying
- Performance characteristics and scalability limits for large-scale applications.
- Specific feature comparison with other Python web frameworks in terms of completeness.
- Hosting and deployment requirements beyond the mentioned platforms.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 21 — typing-extensions, uvicorn, starlette, websockets, htmltools, click, markdown-it-py, mdit-py-plugins, linkify-it-py, platformdirs, asgiref, packaging, watchfiles, questionary, prompt-toolkit, python-multipart, setuptools, narwhals, orjson, shinychat, opentelemetry-api |
| Maintenance | actively maintained — 16 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 295,718/month — #7,917 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: shiny-1.7.0-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
rsconnect-pythonrsconnect-python is a command-line tool for…
unclear · top 15,000 on PyPI
shinychatshinychat provides a chat UI component for…
permissive · top 15,000 on PyPI
shinywidgetsEmbeds ipywidgets (Jupyter interactive widgets)…
permissive · top 15,000 on PyPI
shinyswatchProvides 25 Bootswatch + Bootstrap 5 themes for…
permissive · top 15,000 on PyPI
prefab-uiPrefab is a Python UI framework for building…
permissive · top 15,000 on PyPI
dashDash is a Python framework for building…
permissive · top 5,000 on PyPI
faiconsProvides Font Awesome 6.2.0 icons as SVG…
permissive · top 15,000 on PyPI
reflex-components-coreProvides a collection of UI components for…
permissive · top 15,000 on PyPI
htaghtag is a Python GUI toolkit for building web,…
permissive · top 15,000 on PyPI
solaraSolara is a React-style Python framework for…
permissive · top 15,000 on PyPI