Skip to main content

A web development framework for Python.

Project description

Shiny for Python

PyPI Latest Release Build status Conda Latest Release Supported Python versions License

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:

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

If you are working from a fork you may not have the git tags from the original repo. Git tags are required for the install to succeed. To add tags to your own fork:

git remote add upstream https://github.com/posit-dev/py-shiny.git
git fetch --tags upstream

Then install:

pip install -e ".[dev,test,doc]"

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

Tests should now pass:

make check
# To apply formatting fixes instead of erroring:
# make check-fix

Or get a full list of helpers with just:

make

Typically, when developing new features for Shiny, you'll want to try them out in an application. In a separate application directory, use can use -e to reference your local checkout of py-shiny:

# Rather than
#   pip install shiny
# run:
pip install -e ../py-shiny --config-settings editable_mode=compat

See the docs README for instructions on building the documentation locally.

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

shiny-1.6.2.tar.gz (5.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shiny-1.6.2-py3-none-any.whl (3.9 MB view details)

Uploaded Python 3

File details

Details for the file shiny-1.6.2.tar.gz.

File metadata

  • Download URL: shiny-1.6.2.tar.gz
  • Upload date:
  • Size: 5.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for shiny-1.6.2.tar.gz
Algorithm Hash digest
SHA256 9eceef99dfe299e9a74a0a67f5560312a58208f8e8f547239425314ae17f509e
MD5 642f033cfabb8ff755fda78a7c2dd34c
BLAKE2b-256 c5e468d1acee9986efbcad9daa2674516be21f960a7b3a77d2de228fa7729b12

See more details on using hashes here.

File details

Details for the file shiny-1.6.2-py3-none-any.whl.

File metadata

  • Download URL: shiny-1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for shiny-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 44d1c48ae3c20e7c5cc0903dcb8f36254054e13ebc827ece71e57732b4a9510a
MD5 c1287cbbe012514c4aa7a483d21f7973
BLAKE2b-256 f2356f9758ccf5d43830e04c375aa24a7ae201e8a47e6273fc765fd1b73332ba

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