git-like diff viewer for streamlit webapp
pip install st-diff-viewer
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
- nodejs >= 18.x
- yarn >= 1.22.x
- poetry >= 1.2.x
- python >= 3.8.x
./build.sh
poetry publish
This project is licensed under the MIT License - see the LICENSE file for details