Skip to main content

streamlit-diff-viewer

git-like diff viewer for streamlit webapp

Installation

pip install st-diff-viewer

Usage

from st_diff_viewer import diff_viewer

old_text = "a = 0"
new_text = "a = 1"
diff_viewer(old_text, new_text, split_view=True)

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

Metadata

Release files for st-diff-viewer 1.0.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 st-diff-viewer 1.0.7
File Size Uploaded Provenance Actions
st_diff_viewer-1.0.7.tar.gz 218.6 kB Without provenance Details for st_diff_viewer-1.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for st-diff-viewer 1.0.7
File Interpreter ABI Platform Actions
st_diff_viewer-1.0.7-py3-none-any.whl Python 3 none any Details for st_diff_viewer-1.0.7-py3-none-any.whl

Total release size: 409.0 kB

Release files / st_diff_viewer-1.0.7.tar.gz

Download URL st_diff_viewer-1.0.7.tar.gz
Size 218.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2e3e01f1b0759e43ca4e5d02b93c8c4395006513fb696fe54a7fbfb2766aeb2c
BLAKE2b-256 checksum
How to use checksums
dcc8f80e4ec2b86a64c68d2764f571b4f0284ea1bdaf6689437b1242b8ef59cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.14 Darwin/24.0.0

Release files / st_diff_viewer-1.0.7-py3-none-any.whl

Download URL st_diff_viewer-1.0.7-py3-none-any.whl
Size 190.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bb5ab0acc1d065743e2dd86f37bd8387b14cc208973a2907e48ae27770b2331
BLAKE2b-256 checksum
How to use checksums
4993405e792062525815a9a0e2e6d649183009abc0afd103a7159875f248d9f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.14 Darwin/24.0.0

Security for st-diff-viewer 1.0.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