Skip to main content

Streamlit logo

streamlit-chitchat

make chat messages easier to style in streamlit

streamlit-chitchat lets you style messages from the user and responses from a bot differently. you can also update an existing message, so that streamed tokens render as they are received.

Installation

Open a terminal and run:

$  pip  install  streamlit-chitchat

example use

in your streamlit app, insert:

from streamlit-chitchat.chitchat import message
message('hello, how are you?', is_user=True)
bot=message()
for w in 'excellent! have any plans for tonight?'.split(' '):
	bot.write(w+' ')

example styling

use an avatar:

message('hello, how are you?', is_user=True, avatar='images/test.png')

you can also use image urls, svg code or svg files

set background color:

message('hello, how are you?', is_user=True, background='rgb(150,160,150)')

In order to make the color lighter, you can use rgb with alpha value: background='rgb(130,120,100, 0.5)'

set font size:

message('hello, how are you?', is_user=True, font_size='1rem')

other values

font color, width , or margin

message('hello', color='rgb(20,20,30)', width='70%', margin='5px')

Metadata

Release files for streamlit-chitchat 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit-chitchat 0.1.7
File Size Uploaded Provenance Actions
streamlit_chitchat-0.1.7.tar.gz 5.1 kB Without provenance Details for streamlit_chitchat-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-chitchat 0.1.7
File Interpreter ABI Platform Actions
streamlit_chitchat-0.1.7-py3-none-any.whl Python 3 none any Details for streamlit_chitchat-0.1.7-py3-none-any.whl

Total release size: 11.8 kB

Release files / streamlit_chitchat-0.1.7.tar.gz

Download URL streamlit_chitchat-0.1.7.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e123c9c39870eea80342366e3a2dd75b25e1bf9765cecb535e1a4409d2b2bfce
BLAKE2b-256 checksum
How to use checksums
f623c45ac018bea8f91ab8446a49102cacc1318f7aaf7d8a6bd5246ba102543c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / streamlit_chitchat-0.1.7-py3-none-any.whl

Download URL streamlit_chitchat-0.1.7-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
203a3a2ad3b5b68c3e97235986ea802b9b4205c15a35a3d318e802df0e759167
BLAKE2b-256 checksum
How to use checksums
f812b4ad4861c21754f5643687585574024f8bac39e0999a02330b5b14b3f13d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Security for streamlit-chitchat 0.1.7

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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