Skip to main content
https://img.shields.io/pypi/v/sandhi Documentation Status Python Version Support GitHub Issues GitHub Followers Twitter Followers

Sanskrit Sandhi Module

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

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)

Source distribution for sandhi 1.0.0
File Size Uploaded
sandhi-1.0.0.tar.gz 42.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sandhi 1.0.0
File Interpreter ABI Platform
sandhi-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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