lipimala for Python
IAST-style transliteration for Devanagari and Gujarati, with canonical reverse conversion, direct script conversion, and Plain-English or Hunterian output.
Install
pip install lipimala
Requires Python 3.12 or newer. The package has no runtime dependencies.
Use
from lipimala import (
to_devanagari_from_iast,
to_canonical_iast_from_gujarati,
to_plain_english_from_devanagari,
to_plain_english_from_gujarati,
to_canonical_gujarati_from_devanagari,
)
print(to_devanagari_from_iast('Kṛṣṇa')) # कृष्ण
print(to_canonical_iast_from_gujarati('કૃષ્ણ')) # kṛṣṇa
print(to_plain_english_from_devanagari('कानपुर')) # kaanpur
print(to_plain_english_from_gujarati('આજ મારે')) # aaj maare
print(to_canonical_gujarati_from_devanagari('कृष्ण')) # કૃષ્ણ
Use to_hunterian_from_devanagari() and to_hunterian_from_gujarati() for Hunterian output. List helpers such as to_devanagari_from_iast_list() convert sequences of strings.
Profiles and options
Forward conversion accepts strictIast, iso15919Core, or extendedIndic profiles. The default is extendedIndic. Options control normalization, unknown input, digits, punctuation, Vedic accents, whitespace, and exact-source metadata.
Direct Brahmic transcription accepts BrahmicPlainEnglishOptions for language selection, schwa deletion, vowel length, terminal anusvara, Gujarati ʿayn, and other pronunciation choices.
Preserve the original input
The rendered script may not encode the original Latin spelling, capitalization, or normalization. A result envelope keeps the source beside the rendered value:
from lipimala import to_devanagari
result = to_devanagari('Kṛṣṇa')
print(result.rendered) # कृष्ण
print(result.restore_original()) # Kṛṣṇa
For a standalone string, set embed_exact_source_metadata=True in the conversion options and use an exact reverse function such as to_exact_iast_from_devanagari(). Unicode-tag metadata can be removed by systems that sanitize invisible characters.
License
MIT. See LICENSE.
Metadata
Release files for lipimala 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lipimala-1.1.0.tar.gz | 85.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lipimala-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 124.7 kB
Release files / lipimala-1.1.0.tar.gz
| Download URL | lipimala-1.1.0.tar.gz |
|---|---|
| Size | 85.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50651c14890110a138af9a5d693a0bd8be0a81cd7c1230c18559cb2107fc7b31
|
|
BLAKE2b-256 checksum How to use checksums |
244daafa34f751d0eb82ccc580812e40f856db022e1363e4e0397da791d71fa7
|
| 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 Oct 13, 2026.
Transparency logRelease files / lipimala-1.1.0-py3-none-any.whl
| Download URL | lipimala-1.1.0-py3-none-any.whl |
|---|---|
| Size | 38.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
056c4aeadfefca576553bfa0fd425fe8eba8a2970f81ba7035b8c106fda2916c
|
|
BLAKE2b-256 checksum How to use checksums |
6816fdfa16ece676c3e5016c1cd16bda230fd847c93c9a602a74670ab67f3f56
|
| 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 Oct 13, 2026.
Transparency log