Kaalin
A Python toolkit for the Karakalpak language. Zero dependencies, Python 3.10+.
Installation
pip install kaalin
Script Conversion
Bidirectional Latin ↔ Cyrillic conversion. Loanwords with special characters (ь, ъ, э, ё, щ) are handled automatically.
from kaalin.converter import latin2cyrillic, cyrillic2latin
latin2cyrillic("Assalawma áleykum") # Ассалаўма әлейкум
cyrillic2latin("Ассалаўма әлейкум") # Assalawma áleykum
# You can extend the built-in loanword dictionary with your own entries
latin2cyrillic("stilistika", custom_loanwords={"stilistika": "стилистика"})
Number to Words
Converts numbers to Karakalpak words. Supports integers, floats, and negatives up to 10³⁰.
from kaalin.number import to_word
to_word(123) # bir júz jigirma úsh
to_word(999, num_type="cyr") # тоғыз жүз тоқсан тоғыз
Syllabification
Splits words into syllables. Works with both Latin and Cyrillic input.
from kaalin.syllable import syllabify
syllabify("qaraqalpaqstan") # ['qa', 'ra', 'qal', 'paq', 'stan']
syllabify("Шарапат") # ['Ша', 'ра', 'пат']
String Utilities
Karakalpak-aware upper() / lower() that correctly handle the dotless ı ↔ Í pair.
from kaalin.string import upper, lower
upper("Assalawma áleykum") # ASSALAWMA ÁLEYKUM
lower("ASSALAWMA ÁLEYKUM") # assalawma áleykum
CLI
Convert text files between scripts from the terminal:
cyr2lat input.txt # writes input-lat.txt
lat2cyr input.txt # writes input-cyr.txt
License
MIT
Metadata
Release files for kaalin 3.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kaalin-3.3.5.tar.gz | 22.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kaalin-3.3.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.7 kB
Release files / kaalin-3.3.5.tar.gz
| Download URL | kaalin-3.3.5.tar.gz |
|---|---|
| Size | 22.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5edead2d7d7bfed283117ba23d7573181622bbe42ca2494b58ebc99c9fd852c
|
|
BLAKE2b-256 checksum How to use checksums |
040c40a6b8f8d4145e22c247c16d7befd6e815e1256c38bb3c3d6b0f53466679
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / kaalin-3.3.5-py3-none-any.whl
| Download URL | kaalin-3.3.5-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef94f584c2cf7a882162129c203558bc63aaab19bc05d7b4666bcc3c22540bd5
|
|
BLAKE2b-256 checksum How to use checksums |
0079cad8bf8d1f2d4b62cfe8639c28d30556048cf4b353e3bd75f8a003ad493c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|