local-diff-san
Single-pane word-flow, intra-word character/Vedic-grapheme, and 2-pane local diff viewer built on pull_requests_san for Sanskrit and Indic scholarship.
Install
pip install local-diff-san
Usage
# Compare a local file against Git HEAD (or another revision via --rev)
local-diff-san path/to/file.md
local-diff-san path/to/file.md --rev HEAD~1
# Compare two given local files side-by-side or in single-pane word flow
local-diff-san old_file.md new_file.md
# Browse all changed files in the current git repository (or a directory) vs HEAD
local-diff-san
local-diff-san path/to/dir
- Live web app (pure-JS file/text diff): [sanskrit-coders.github.io/diff_san/local_diff/](https://sanskrit-coders.github.io/diff_san/local_diff/)
# Export a standalone static HTML website (pure JS client-side file/text diffing)
local-diff-san --export-static docs/local_diff/index.html
# Or invoke as a Python module
python -m local_diff_san old_file.md new_file.md
Key Features
- Single-pane word-flow diff (default) with intra-word character highlights and 2-pane LHS/RHS mode (
Alt+S), powered bypull_requests_san.diffon the CLI or pure-JSDiffSanEnginein static browser mode. - Vedic grapheme (
\X) & raw codepoint modes keeping Vedic svara marks (U+1CD3᳓, etc.) attached to their akṣara (Alt+Wtoggles betweenWordandChar (Grapheme \X)). - Expandable collapsed context lines (click any collapsed-lines bar to expand), Sandhi diff highlighting (active by default for interword sandhi like
अस्ति इति↔अस्तीतिorऽस्मिन्न् इति↔ऽस्मिन् इति, with◀/▶&Alt+Shift+↑/↓jump between sandhi diffs), unified OLD/NEW dashed-pair boxing, keyboard & mouse navigation (Shift+Clickor↑/↓select line,Tab/Shift+Tabstep across individual diffs,Ctrl+Space"Checked until here" green checkpoint, right-click Copy diff for bug report,Ctrl+Fcodepoint-exact find supporting combining marks likeँ,PgUp/PgDnscroll page & select first visible line,Alt+↑/Alt+↓jump prev/next diff line), Unicode normalization (NFC/NFD/NFKC/NFKD),Ignore punct, customizable Settings color pickers, GoldenDict lookup, and click-to-jump IntelliJ IDEA line opening.
IDE Integrations
Launch local-diff-san straight from your editor's file tree, editor tab, or VCS view:
- JetBrains IDEs:
sanskrit-coders/jetbrains_san(JetBrains Marketplace) - VS Code / Open VSX:
sanskrit-coders/vscode_san(VS Code Marketplace, Open VSX)
Metadata
Release files for local-diff-san 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| local_diff_san-0.1.11.tar.gz | 24.0 kB | Without provenance | Details for local_diff_san-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| local_diff_san-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for local_diff_san-0.1.11-py3-none-any.whl |
Total release size: 47.7 kB
Release files / local_diff_san-0.1.11.tar.gz
| Download URL | local_diff_san-0.1.11.tar.gz |
|---|---|
| Size | 24.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbfedffbf881c915ca322ac04bcf5e6253b0e7baf05633cdea4a7add73471472
|
|
BLAKE2b-256 checksum How to use checksums |
35e97693bbbd5da0d67cd66a771635f5e9acdc377c822c723c73057578ba27a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / local_diff_san-0.1.11-py3-none-any.whl
| Download URL | local_diff_san-0.1.11-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ddf81c2d940000f07c6b9f59f3cafcbb9f76f5a0a4983e7de11762669249a5a
|
|
BLAKE2b-256 checksum How to use checksums |
cd72441dd211273745124128a5a207b523011a88b2151b74393325b180d82d27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for local-diff-san 0.1.11
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.