krutidev-unicode (Python)
Convert Hindi text typed in Kruti Dev 010 to Unicode, and Unicode back to Kruti Dev. Pure Python, no dependencies, works offline.
This is a port of the conversion engine that runs the Kruti Dev to Unicode tool on KovaPDF. Its tables are generated from that engine, and it passes the same test vectors as the JavaScript package (@kovapdf/krutidev-unicode on npm).
Need it for whole PDF or Word files? Use KovaPDF: https://www.kovapdf.com/kruti-dev-to-unicode
Built by KovaPDF, https://www.kovapdf.com
pip install krutidev-unicode
from krutidev_unicode import to_unicode, to_kruti, convert_with_report, detect_encoding, is_kruti_font
to_unicode("esjk uke jke gSA") # 'मेरा नाम राम है।'
to_kruti("भारत सरकार") # 'Hkkjr ljdkj'
to_unicode("PDF Q+kby dks Word esa cnysa") # 'PDF फ़ाइल को Word में बदलें' (English kept by default)
to_unicode("Word", keep_english=False) # 'ॅवतक'
convert_with_report("dk;Z", "kruti-to-unicode") # dict: text, keptEnglish, unknown, stats
detect_encoding("esjk uke jke gSA")["kind"] # 'kruti'
is_kruti_font("Kruti Dev 010") # True
Command line (stdin or a file in, stdout out):
krutidev-unicode to-unicode < kruti.txt > unicode.txt
python -m krutidev_unicode to-kruti unicode.txt
Kruti Dev 010 is a legacy font: it draws Hindi shapes on ordinary Latin codes, so its text reads as "dk;kZy;" without the font. Mangal and Nirmala UI are Unicode fonts: set converted text in one of them. Only Kruti Dev 010 is supported (not DevLys or other Kruti Dev numbers). No fonts are included in this package.
Full documentation: https://github.com/kovapdf/krutidev-unicode
The code is MIT licensed. The KovaPDF name, logo and website content are not covered by that licence.
Metadata
Release files for krutidev-unicode 1.0.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 | Provenance | Actions |
|---|---|---|---|---|
| krutidev_unicode-1.0.0.tar.gz | 53.4 kB | With provenance | Details for krutidev_unicode-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| krutidev_unicode-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for krutidev_unicode-1.0.0-py3-none-any.whl |
Total release size: 94.5 kB
Release files / krutidev_unicode-1.0.0.tar.gz
| Download URL | krutidev_unicode-1.0.0.tar.gz |
|---|---|
| Size | 53.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f25ce5afbe10afc9757209f5a85316b6df09f4d66d8249a8417278781dade308
|
|
BLAKE2b-256 checksum How to use checksums |
23008085c0e898730af46d812c20188ea724dd63b0075508314d37c2c1ed6bff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 13, 2026.
Transparency logRelease files / krutidev_unicode-1.0.0-py3-none-any.whl
| Download URL | krutidev_unicode-1.0.0-py3-none-any.whl |
|---|---|
| Size | 41.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2f0efa3b4bb7c99081d2c06179b106e5f7a8bdcf3db162a40bc641b8a51eb71
|
|
BLAKE2b-256 checksum How to use checksums |
48190a28dbc724bcefb19c62508c34eb36b3c773a4069359ec29c469d7bdfe8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 13, 2026.
Transparency logSecurity for krutidev-unicode 1.0.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for krutidev_unicode-1.0.0.tar.gz
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 Nov 13, 2026.
Transparency logA 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.