Akshara
Helps you spell!
Akshara is a tool for all your spelling needs. The package offers functions to:
- Spell any given word (or any string) in Devanagari script.
- Construct a word from a given spelling.
- Count the number of svaras in a string.
- Count the number of sentences in a string.
- Obtain the syllables of a word.
Installation
Latest version of akshara can be directly installed from PyPI using
pip3 install akshara
Usage
Load the varnakaarya module
import akshara.varnakaarya as vk
Obtain spelling (vinyaasa) of a word
a = vk.get_vinyaasa("राम") # a = ['र्', 'आ', 'म्', 'अ']
b = vk.get_vinyaasa("गमॢँ") # b = ['ग्', 'अ', 'म्', 'ऌँ']
c = vk.get_vinyaasa("स पठति ।") # c = ['स्', 'अ', ' ', 'प्', 'अ', 'ठ्', 'अ', 'त्', 'इ', ' ', '।']
Obtain syllables (akshara) of a word
a = vk.get_akshara("राम") # a = ['रा', 'म']
b = vk.get_akshara("गमॢँ") # b = ['ग', 'मॢँ']
c = vk.get_akshara("पठति") # c = ['प', 'ठ', 'ति']
Create a word (shabda) from a given vinyaasa
d = vk.get_shabda(['स्', 'अ', 'ं', 'स्', 'क्', 'ऋ', 'त्' ,'अ', 'म्']) # d = 'संस्कृतम्'
e = vk.get_shabda(['श्', 'इ', 'व्', 'अ', 'ः']) # e = 'शिवः'
f = vk.get_shabda(['द्', 'ए', 'व्', 'अ', 'द्', 'अ', 'त्', 'त्', 'अ३']) # f = देवदत्त३
Count svaras, vyanjanas, ayogavaahas and vaakyas
g = "बुद्धं शरणं गच्छामि । धर्मं शरणं गच्छामि । सङ्घं शरणं गच्छामि ॥"
num_svaras = vk.count_svaras(g) # num_svaras = 24
num_vyanjanas = vk.count_vyanjanas(g) # num_vyanjanas = 30
num_ayogavaahas = vk.count_ayogavaahas(g) # num_ayogavaahas = 6
num_varnas = vk.count_varnas(g) # num_varnas = 60
num_vaakyas = vk.count_vaakyas(g) # num_vaakyas = 3
Metadata
Release files for akshara 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| akshara-1.1.3.tar.gz | 344.8 kB | Without provenance | Details for akshara-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| akshara-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for akshara-1.1.3-py3-none-any.whl |
Total release size: 705.3 kB
Release files / akshara-1.1.3.tar.gz
| Download URL | akshara-1.1.3.tar.gz |
|---|---|
| Size | 344.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f07dfa223549b6efdd7cd29e52f98ab0c3d14e0ef113fea8ff5162f1a3af74f
|
|
BLAKE2b-256 checksum How to use checksums |
cbadfece25dbadf945aed95182a386d9989b10676df67707036cd95bf86d9c6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / akshara-1.1.3-py3-none-any.whl
| Download URL | akshara-1.1.3-py3-none-any.whl |
|---|---|
| Size | 360.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73c7419f7d71a16ad913860f5071873797af8dcea95983c3a34f8e1411492a00
|
|
BLAKE2b-256 checksum How to use checksums |
470b6d5c98a6a1a3140edde1879b84bdaa0eae445fba2d54ed5fa436135d68d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for akshara 1.1.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.