Skip to main content

A Streamlit component to display chat messages

Project description

st-chat-message

Description

This is a simple chat message component for streamlit. It is based on the streamlit-chat component, trying to be as compatible as possible, but it adding a few features:

  • Markdown support
  • LaTeX support
  • Tables

Installation

pip install st-chat-message

or

poetry add st-chat-message

Usage

import streamlit as st
from st_chat_message import message

message("Hello world!", is_user=True)
message("Hi")

img.png

Buiding from source

Prerequisites

  • nodejs >= 18.x
  • yarn >= 1.22.x
  • poetry >= 1.2.x
  • python >= 3.8.x

Building

./build.sh

Publishing

poetry publish 

License

This project is licensed under the MIT License - see the LICENSE file for details

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

st_chat_message-0.3.5.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

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

st_chat_message-0.3.5-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file st_chat_message-0.3.5.tar.gz.

File metadata

  • Download URL: st_chat_message-0.3.5.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.4 Darwin/22.4.0

File hashes

Hashes for st_chat_message-0.3.5.tar.gz
Algorithm Hash digest
SHA256 a69edf5cc1992871a1e815274c7cf96081d4b286d890b68768890881b77de54c
MD5 3500760b17a29288134d92e645366a3f
BLAKE2b-256 9c539743f628ca782b33765947652fa749c9fddd65b90883fa204870ac9a83f0

See more details on using hashes here.

File details

Details for the file st_chat_message-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: st_chat_message-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.4 Darwin/22.4.0

File hashes

Hashes for st_chat_message-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 30c6a24236fa3c82117ef7089bd3df2393988a16f39f299562a67a07726d68ce
MD5 488fbe0244a60515ef81ef6b71e8b959
BLAKE2b-256 72a9dc56a90fe6cb08bd817afb19b314fcefc9e323d75b536b082c23154053f5

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