Skip to main content

Telugu Chandassu Identifier (telugu-chandassu)

PyPI version Python versions License: AGPL v3

A rule-based Python engine for identifying and analyzing Telugu prosodic meters (ఛందస్సు). It classifies Laghu (లఘువు) and Guru (గురువు) weights and matches Vritta (వృత్తం), Jati (జాతి), and Upajati (ఉపజాతి) padyam with detailed Gana, Yati, and Prasa breakdowns.


Installation

Core Library (Zero External Dependencies)

pip install telugu-chandassu

For Development & Testing

pip install "telugu-chandassu[dev]"

Supported Meters

Vritta (వృత్తం — Syllabic / 3-akshara ganas)

Meter (తెలుగు) Meter (English) Gana Sequence Yati Position
ఉత్పలమాల Utpalamala Bha Ra Na Bha Bha Ra Va 10
చంపకమాల Champakamala Na Ja Bha Ja Ja Ja Ra 11
శార్దూలము Shardulam Ma Sa Ja Sa Ta Ta Ga 13
మత్తేభము Mattebham Sa Bha Ra Na Ma Ya Va 14

Jati (జాతి — Matra-based with Surya/Indra ganas, Prasa required)

Meter (తెలుగు) Meter (English) Padas Structure
ద్విపద Dwipada 2 3 Indra + 1 Surya per pada
తరువోజ Taruvoja 4 (3 Indra + 1 Surya) × 2 per pada
కందం Kandam 4 Odd: 3 K-ganas, Even: 5 K-ganas

Upajati (ఉపజాతి — Matra-based, Prasa not required, Prasa-Yati allowed)

Meter (తెలుగు) Meter (English) Padas Structure
ఆటవెలది Ataveladi 4 Odd: 3 Indra + 2 Surya, Even: 5 Surya
తేటగీతి Tetagiti 4 1 Surya + 2 Indra + 2 Surya per pada
సీసం Sisam 4 6 Indra + 2 Surya per pada

Usage

from telugu_chandassu import ChandassuEngine

engine = ChandassuEngine()

poem_text = """భవదున్మేషవిజృంభణంబు పరికింపంగా సరోజాతసం-
భవు జన్మంబు భవన్నిమేష మమితబ్రహ్మాండకల్పాంత భై-
రవసంక్షోభిత మన్నఁ దక్కిన భవత్ప్రారంభభూరిక్రియా-
నివహం బెవ్వరు నేర్తు రిట్టిదని వర్ణింపంగ సర్వేశ్వరా!"""

# 1. Identify Meter
result = engine.identify_meter(poem_text)
print("Meter Name     :", result.meter_name)       # "Mattebham"
print("Confidence     :", result.confidence)       # "95.0%"
print("Yati Valid     :", result.yati_valid)       # True
print("Prasa Valid    :", result.prasa_valid)      # True
print("Ganas Found    :", result.ganas_found)      # ['Sa', 'Bha', 'Ra', 'Na', 'Ma', 'Ya', 'Va']
print("Prasa Consonant:", result.prasa_note)       # Main Prasa: వ

# 2. Analyze Individual Aksharas & Weights
tokens = engine.analyze(poem_text)
for token in tokens:
    if token.is_word:
        for ak in token.aksharas:
            print(f"{ak.text}: {ak.weight.value}")  # e.g. "భ": "I", "వ": "I", "దు": "U"

# 3. Debug Output
print(engine.debug_output(poem_text))

Running Tests

pytest tests/ -v

License

This project is licensed under the GNU Affero General Public License v3 (AGPL-3.0).

Metadata

Release files for telugu-chandassu 0.2.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 telugu-chandassu 0.2.0
File Size Uploaded
telugu_chandassu-0.2.0.tar.gz 40.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for telugu-chandassu 0.2.0
File Interpreter ABI Platform
telugu_chandassu-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 88.8 kB

Release files / telugu_chandassu-0.2.0.tar.gz

Download URL telugu_chandassu-0.2.0.tar.gz
Size 40.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ee9e0f0f1f34187af4c84d25e380288710db34ff176486b68f7db19eb86dfe6f
BLAKE2b-256 checksum
How to use checksums
e9fec42d5574d6517f666b8e317536e5ae3c8c3df6890a0f0997b6cb6da72da3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.

Transparency log

Release files / telugu_chandassu-0.2.0-py3-none-any.whl

Download URL telugu_chandassu-0.2.0-py3-none-any.whl
Size 48.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
047ae3128202e38a47e084f68773ae59c5cf895f81639fd4214bcaf82c05b8c3
BLAKE2b-256 checksum
How to use checksums
bb6bf123f86b290de56cf2009e040339f72ab79218281c695fdf64a14e6236ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

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