Katapayadi sankhya is a simplification of Aryabhata's Sanskrit numerals, due probably to haridatta from Kerala.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
libindic/katapayadi
.gitignore
.testr.conf
.travis.yml
Makefile
README.md
circle.yml
requirements.txt
setup.cfg
setup.py
test-requirements.txt
tox.ini

README.md

LibIndic Katapayadi

Build Status Coverage Status

Katapayadi sankhya is a simplification of Aryabhata's Sanskrit numerals, due probably to Haridatta from Kerala. In Malayalam it is also known as 'Paralperu'. For eg: ചണ്ഡാംശുചന്ദ്രാധമകുംഭിപാല represents 31415926536 which is π*1000000000000000. More examples in Malayalam are given in this page

LibIndic's katapayadi module may be used to find out katapayadi number of a given string, as well as to get Swarasthanas of a Melakartha number.

Installation

  1. Clone the repository git clone https://github.com/libindic/katapayadi.git
  2. Change to the cloned directory cd katapayadi
  3. Run setup.py to create installable source python setup.py sdist
  4. Install using pip pip install dist/libindic-katapayadi*.tar.gz

Usage

>>> from libindic.katapayadi import Katapayadi
>>> instance = Katapayadi()
>>> instance.get_number(u"സത്യം")
17
>>> instance.get_swarasthanas(1)
['Sa', 'Ri1', 'Ga1', 'Ma1', 'Pa', 'Da1', 'Ni1', 'Sa']

For more details read the docs