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.2

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.2
File Size Uploaded
shinychat-0.7.2.tar.gz 535.5 kB Details

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / shinychat-0.7.2.tar.gz

Download URL shinychat-0.7.2.tar.gz
Size 535.5 kB
Tags Source
SHA-256 checksum
How to use checksums
de83aa829ef84c86f69dd9b76647d5630090264b5be977a2d2fe8ee37dbd71c0
BLAKE2b-256 checksum
How to use checksums
942c709a1dac514c175ed4d286ee5efa796952ad9944b664464151adc7e62e9f
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 18, 2026.

Transparency log

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

Download URL shinychat-0.7.2-py3-none-any.whl
Size 554.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a063b4cb789019f7dd1e897cf67f351915c00e2fc34b957a3824fcaab1c702b0
BLAKE2b-256 checksum
How to use checksums
7d928976398c152b6984723abed71e315ca1b572b791cc8f05cdf1b17157e8f0
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 18, 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