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.2

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.2
File Size Uploaded Provenance Actions
shivalipi-0.0.2.tar.gz 5.6 kB Without provenance Details for shivalipi-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 11.8 kB

Release files / shivalipi-0.0.2.tar.gz

Download URL shivalipi-0.0.2.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0496cd94cf63c2bdb58b730978f71c3279a1c5d0a6cea5a32003940936cb5a3b
BLAKE2b-256 checksum
How to use checksums
d6d012101dd1917eac7cfe23b1fc8d7c975e3b88880b64bf9a3f2160b6c2de21
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.2-py3-none-any.whl

Download URL shivalipi-0.0.2-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17c7d6495e3de1bd0b7e76a7360b32824e5a2f9d510a70b238d8e301a54cace8
BLAKE2b-256 checksum
How to use checksums
7e17de6487cd91b14cded3513cfd02c47a900bc137114da4b11c47215efc0261
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.2

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