Skip to main content

Metrical analysis tools for indic languages in general, and sanskrit in particular

Project description


|Build Status| |Documentation Status|

For users

- `Autogenerated Docs on readthedocs (might be
broken) <>`__.
- Manually and periodically generated docs
`here <>`__
- For detailed examples and help, please see individual module files in
this package.

Installation or upgrade:

- ``sudo pip install chandas -U``
- ``sudo pip install git+ -U``
- `Web <>`__.


For more examples, see tests.

Metre Identification


from chandas import identify
pattern_lines = "निर्दिष्टाङ् कुलपतिना स पर्णशालाम् अध्यास्य प्रयतपरिग्रहद्वितीयः ।\nतच्छिष्याध्ययननिवेदितावसानां सव्ँविष्टः कुशशयने निशान् निनाय ॥".split("\n")
id_result = identify.identifier.IdentifyFromPatternLines(pattern_lines)
assert id_result['exact'] == "Praharṣiṇī"



from chandas import syllabize
syllabize.get_syllables(u"ॐ मणि पद्मे ऽहम्") == "ओम् म णि पद् मे हम्"
syllabize.get_graphemes(u"बिक्रममेरोनामहो") == "बि क् र म मे रो ना म हो".split(" ")

Shared test data

Please feel free to use test data published here to test your own

- `syllabizationTests.json <>`__

For contributors

Intro and acknowledgement

We copy much code from `shreevatsa's
repo <>`__.


Have a problem or question? Please head to
`github <>`__.


- ~/.pypirc should have your pypi login credentials.


python bdist_wheel
twine upload dist/* --skip-existing

Build documentation

- sphinx html docs can be generated with ``cd docs; make html``


Run ``pytest`` in the root directory.

Auxiliary tools

- |Build Status|
- |Documentation Status|
- `pyup <>`__

.. |Build Status| image::
.. |Documentation Status| image::
.. |Documentation Status| image::

Project details

Download files

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

Files for chandas, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size chandas-0.0.3-py3-none-any.whl (14.3 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page