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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| st_diff_viewer-1.0.7.tar.gz | 218.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| st_diff_viewer-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
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
|