Skip to main content

A Streamlit component to display diff betoween two strings

Project description

streamlit-diff-viewer

git-like diff viewer for streamlit webapp

Installation

pip install streamlit-typst

Usage

from streamlit_typst import st_typst

text = "a = 1"
st_typst(text)

run example:

streamlit run example.py

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

streamlit_typst-1.0.5.tar.gz (7.8 MB view hashes)

Uploaded Source

Built Distribution

streamlit_typst-1.0.5-py3-none-any.whl (7.8 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page