Sanskrit Sandhi
Sanskrit Sandhi Module
Free software: GNU General Public License v3
Documentation: https://sandhi.readthedocs.io.
Features
Form Sandhi using Ashtadhyayi Rules
Install
To install Sanskrit Sandhi, run this command in your terminal:
$ pip install sandhi
Usage
Library
To use Sanskrit Sandhi in a project,
import sandhi
S = sandhi.Sandhi()
sandhi = S.sandhi("रामः", "राजमणिः")
# print(sandhi)
# [['रामो राजमणिः', 'ससजुषो रुः (८।२।६६)-> हशि च (६।१।११४)-> आद् गुणः (६।१।८७)', 'रुत्व-> उत्व-> गुण-सन्धिः']]
Command-line
After installation, a sandhi command is available:
$ sandhi रामः राजमणिः
1. रामो राजमणिः | ससजुषो रुः (८।२।६६)-> हशि च (६।१।११४)-> आद् गुणः (६।१।८७) | रुत्व-> उत्व-> गुण-सन्धिः
To print only the resulting forms (without sutra and sandhi type), use:
$ sandhi --quiet रामः राजमणिः
रामो राजमणिः
Credits
This package was converted from Perl version obtainable from Samsaadhanii
This package was created with Cookiecutter and the hrishikeshrt/cookiecutter-pypackage project template.
History
1.0.0 (2025-12-10)
Marked the project as Production/Stable and bumped the version to 1.0.0.
Implemented a usable command-line interface (sandhi) wrapping sandhi.Sandhi.
Documented CLI usage alongside the library API in README.rst and USAGE.rst.
Added tests for the CLI to complement the existing rule and transliteration tests.
Updated CI and metadata for consistent Python 3 support.
0.1.0 (2022-07-03)
First release on PyPI.
Metadata
Release files for sandhi 1.0.0
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 |
|---|---|---|---|---|
| sandhi-1.0.0.tar.gz | 42.9 kB | Without provenance | Details for sandhi-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sandhi-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for sandhi-1.0.0-py2.py3-none-any.whl |
Total release size: 74.3 kB
Release files / sandhi-1.0.0.tar.gz
| Download URL | sandhi-1.0.0.tar.gz |
|---|---|
| Size | 42.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31a259bcfc330289907f2bba08a0e09ba766059a2e6d8f54d4e7d4a5e038aff8
|
|
BLAKE2b-256 checksum How to use checksums |
ee844a5d1851a6097b513b8dab1a1a78c59a1b617507df22cd12a86aa703e123
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Release files / sandhi-1.0.0-py2.py3-none-any.whl
| Download URL | sandhi-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 31.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4b4651184ba6a93fad893e25c2a874dd64f41eee11f7357d7f452b5128f93968
|
|
BLAKE2b-256 checksum How to use checksums |
c1da9c25a70d47cadc35a71ef552cf53212fa35b8ff3291960d55d33fa358a86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Security for sandhi 1.0.0
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.