Skip to main content

shinychat

shinychat for Python website

Chat UI component for Shiny for Python.

Note: shinychat is automatically installed with Shiny for Python and available as shiny.ui.Chat and shiny.express.ui.Chat. For complete instructions about creating chatbots please see the Shiny for Python documentation.

Installation

You can install shinychat from PyPI with:

uv pip install shinychat

Or, install the development version of shinychat from GitHub with:

uv pip install git+https://github.com/posit-dev/shinychat.git

Example

from shiny.express import render, ui
from shinychat.express import Chat

# Set some Shiny page options
ui.page_opts(title="Hello Chat")

# Create a chat component, with an initial greeting
chat = Chat(
    id="chat",
    greeting="Hello! How can I help you today?",
)

# Display the chat
chat.ui()


# Define a callback to run when the user submits a message
@chat.on_user_submit
async def handle_user_input(user_input: str):
    await chat.append_message(f"You said: {user_input}")


"Message state:"


@render.code
def message_state():
    return str(chat.messages())

Metadata

Release files for shinychat 0.7.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 shinychat 0.7.0
File Size Uploaded
shinychat-0.7.0.tar.gz 532.1 kB Details

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / shinychat-0.7.0.tar.gz

Download URL shinychat-0.7.0.tar.gz
Size 532.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c3e7d52d421fcc6adf4fee9b6c55d0dab829c1bad9050067d2892e0bd99b92a1
BLAKE2b-256 checksum
How to use checksums
6af36c0602cec6577b2aeae489da37a01cc5de333779ecc3e1d27bed5a8ae898
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 4, 2026.

Transparency log

Release files / shinychat-0.7.0-py3-none-any.whl

Download URL shinychat-0.7.0-py3-none-any.whl
Size 551.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
596f921fa170852f3946a3ffaa6b4adec68773846918ef5357430001ab19a158
BLAKE2b-256 checksum
How to use checksums
5e379d417996dc2a7a6b56ac612b3e0831104194e928a46f2f5fed48778a355d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 4, 2026.

Transparency log
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