Skip to main content

Sanskrit Sandhi Module

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sandhi-1.0.0.tar.gz (42.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sandhi-1.0.0-py2.py3-none-any.whl (31.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sandhi-1.0.0.tar.gz.

File metadata

  • Download URL: sandhi-1.0.0.tar.gz
  • Upload date:
  • Size: 42.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for sandhi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 31a259bcfc330289907f2bba08a0e09ba766059a2e6d8f54d4e7d4a5e038aff8
MD5 6598058646c222b677324b5abad95083
BLAKE2b-256 ee844a5d1851a6097b513b8dab1a1a78c59a1b617507df22cd12a86aa703e123

See more details on using hashes here.

File details

Details for the file sandhi-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: sandhi-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 31.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for sandhi-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4b4651184ba6a93fad893e25c2a874dd64f41eee11f7357d7f452b5128f93968
MD5 9ad9b5c47ae7b3fb8108ec632195a804
BLAKE2b-256 c1da9c25a70d47cadc35a71ef552cf53212fa35b8ff3291960d55d33fa358a86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page