shiny1.2.1
Published
A web development framework for Python.
pip install shiny
Package Downloads
Authors
Project URLs
Requires Python
>=3.9
Dependencies
- typing-extensions
>=4.10.0
- starlette
- websockets
>=13.0
- python-multipart
- htmltools
>=0.6.0
- markdown-it-py
>=1.1.0
- mdit-py-plugins
>=0.3.0
- linkify-it-py
>=1.0
- appdirs
>=1.4.4
- asgiref
>=3.5.2
- packaging
>=20.9
- narwhals
>=1.10.0
- orjson
>=3.10.7
- uvicorn
>=0.16.0; platform_system != "Emscripten"
- click
>=8.1.4; platform_system != "Emscripten"
- watchfiles
>=0.18.0; platform_system != "Emscripten"
- questionary
>=2.0.0; platform_system != "Emscripten"
- prompt-toolkit
; platform_system != "Emscripten"
- python-multipart
>=0.0.7; platform_system != "Emscripten"
- setuptools
; python_version >= "3.12"
- black
>=24.0; extra == "dev"
- flake8
>=6.0.0; extra == "dev"
- flake8-bugbear
>=23.2.13; extra == "dev"
- Flake8-pyproject
>=1.2.3; extra == "dev"
- isort
>=5.10.1; extra == "dev"
- libsass
>=0.23.0; extra == "dev"
- brand-yml
>=0.1.0; extra == "dev"
- pyright
>=1.1.383; extra == "dev"
- pre-commit
>=2.15.0; extra == "dev"
- wheel
; extra == "dev"
- matplotlib
; extra == "dev"
- pandas
; extra == "dev"
- pandas-stubs
; extra == "dev"
- polars
; extra == "dev"
- numpy
; extra == "dev"
- shinyswatch
>=0.7.0; extra == "dev"
- python-dotenv
; extra == "dev"
- anthropic
; extra == "dev"
- langchain-core
; extra == "dev"
- openai
; extra == "dev"
- ollama
; extra == "dev"
- tokenizers
; extra == "dev"
- aiohttp
; extra == "dev"
- beautifulsoup4
; extra == "dev"
- google-generativeai
; python_version >= "3.9" and extra == "dev"
- jupyter
; extra == "doc"
- jupyter-client
<8.0.0; extra == "doc"
- tabulate
; extra == "doc"
- shinylive
; extra == "doc"
- pydantic
>=2.7.4; extra == "doc"
- quartodoc
>=0.8.1; extra == "doc"
- griffe
>=1.3.2; extra == "doc"
- pytest
>=6.2.4; extra == "test"
- pytest-asyncio
>=0.17.2; extra == "test"
- pytest-playwright
>=0.3.0; extra == "test"
- playwright
>=1.43.0; extra == "test"
- pytest-xdist
; extra == "test"
- pytest-timeout
; extra == "test"
- pytest-rerunfailures
; extra == "test"
- pytest-cov
; extra == "test"
- coverage
; extra == "test"
- syrupy
>=4.7.1; extra == "test"
- psutil
; extra == "test"
- astropy
; extra == "test"
- suntime
; extra == "test"
- ipyleaflet
; extra == "test"
- shinywidgets
; extra == "test"
- seaborn
; extra == "test"
- plotnine
; extra == "test"
- plotly
; extra == "test"
- duckdb
; extra == "test"
- holoviews
; extra == "test"
- bokeh
; extra == "test"
- xarray
; extra == "test"
- geopandas
; extra == "test"
- geodatasets
; extra == "test"
- missingno
; extra == "test"
- rsconnect-python
; extra == "test"
- scikit-learn
; extra == "test"
- folium
; extra == "test"
- palmerpenguins
; extra == "test"
- faicons
; extra == "test"
- ridgeplot
; extra == "test"
- great-tables
; extra == "test"
- modin
[all]; extra == "test"
- polars
; extra == "test"
- dask
[dataframe]; extra == "test"
- pyarrow
; extra == "test"
- pyarrow-stubs
; extra == "test"
- timezonefinder
; platform_system != "Windows" and extra == "test"
- libsass
>=0.23.0; extra == "theme"
- brand-yml
>=0.1.0; extra == "theme"
Shiny for Python
Shiny for Python is the best way to build fast, beautiful web applications in Python. You can build quickly with Shiny and create simple interactive visualizations and prototype applications in an afternoon. But unlike other frameworks targeted at data scientists, Shiny does not limit your app's growth. Shiny remains extensible enough to power large, mission-critical applications.
To learn more about Shiny see the Shiny for Python website. If you're new to the framework we recommend these resources:
-
How Shiny is different from Dash and Streamlit.
-
How reactive programming can help you build better applications.
-
How to use modules to efficiently develop large applications.
-
Hosting applications for free on shinyapps.io, Hugging Face, or Shinylive.
Join the conversation
If you have questions about Shiny for Python, or want to help us decide what to work on next, join us on Discord.
Getting started
To get started with shiny follow the installation instructions or just install it from pip.
pip install shiny
To install the latest development version:
# First install htmltools, then shiny
pip install git+https://github.com/posit-dev/py-htmltools.git#egg=htmltools
pip install git+https://github.com/posit-dev/py-shiny.git#egg=shiny
You can create and run your first application with shiny create
, the CLI will ask you which template you would like to use. You can either run the app with the Shiny extension, or call shiny run app.py --reload --launch-browser
.
Development
- Shinylive built from the
main
branch: https://posit-dev.github.io/py-shiny/shinylive/py/examples/ - API documentation for the
main
branch:
If you want to do development on Shiny for Python:
pip install -e ".[dev,test]"
Additionally, you can install pre-commit hooks which will automatically reformat and lint the code when you make a commit:
pre-commit install
# To disable:
# pre-commit uninstall