Skip to main content

Shivalipi (शिवलिपी) 📜

PyPI Version Author License

A dedicated Python vision engine and linguistic mapping library engineered to decipher historical handwritten Modi Lipi (मोडी लिपी) documents directly into standard Devanagari Marathi (देवनागरी मराठी).


🚀 Key Features

  • Pure Direct Mapping: Direct image-to-Devanagari pipeline without requiring intermediate external transliteration engines.
  • Historical Administrative Lexicon: Optimized for Peshwa, Maratha Empire, and colonial-era administrative documents, sanads (सनद), and court letters (कौलनामा).
  • Dual Pipeline Support:
    • Fast, lightweight Vision-Encoder-Decoder for standard manuscript line strips.
    • Native Devanagari Unicode NFC normalization and ligature handling.
  • Developer First: Clean, minimalist Python API.

📦 Installation

pip install shivalipi

Quickstart

Python import shivalipi

#Transcribe a Modi manuscript image to Devanagari Marathi result = shivalipi.transcribe("path/to/modi_document.jpg") print("Transcription:") print(result)


Advanced Usage

Python from shivalipi import Shivalipi

#Initialize the engine on a specific device (cuda / mps / cpu) engine = Shivalipi(device="cuda")

#Run inference with structured metadata output = engine.transcribe("peshwa_letter_line.png")

print("Clean Marathi Text :", output.text) print("Raw Model Output :", output.raw_text)


Evaluation & Metrics

shivalipi provides built-in metrics tailored for Devanagari scripts:

Python from shivalipi import compute_cer, compute_wer

predictions = ["राजमान्य राजश्री", "कौलनामा"] ground_truth = ["राजमान्य राजश्री", "कौलनामा"]

cer = compute_cer(predictions, ground_truth) wer = compute_wer(predictions, ground_truth)

print(f"CER: {cer * 100:.2f}% | WER: {wer * 100:.2f}%")


Author & Maintainer

Developed and maintained by Rohit Manikrao Patil

Website: www.rohitmanikraopatil.com

GitHub: (https://github.com/Litap-AI/shivalipi)


License

This project is licensed under the Apache License 2.0.


Metadata

Release files for shivalipi 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shivalipi 0.0.3
File Size Uploaded Provenance Actions
shivalipi-0.0.3.tar.gz 5.6 kB Without provenance Details for shivalipi-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shivalipi 0.0.3
File Interpreter ABI Platform Actions
shivalipi-0.0.3-py3-none-any.whl Python 3 none any Details for shivalipi-0.0.3-py3-none-any.whl

Total release size: 11.8 kB

Release files / shivalipi-0.0.3.tar.gz

Download URL shivalipi-0.0.3.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c7fdb6a40d20dc92515649ae48a0ea4955e41cc8b84266f6ac5506876ab6aa8f
BLAKE2b-256 checksum
How to use checksums
0f9b2534e47989354c1fff8441e4144a83e01b67e7bcd307ed752bcd38e59991
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / shivalipi-0.0.3-py3-none-any.whl

Download URL shivalipi-0.0.3-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4f1697c5fc7cb3eb2df44f77ca51b3314a011ca4db1a9854b0cfba5a5eea5d6
BLAKE2b-256 checksum
How to use checksums
e5793c836d9234d336586537d77e04e471fefba401524cae6a173e00c1b0e157
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for shivalipi 0.0.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.

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