ئامرازەکانی کوردی سۆرانی - Kurdish Sorani language utilities for Python
Project description
Kurdish Sorani Tools - Python
ئامرازەکانی کوردی سۆرانی بۆ پایتۆن
A comprehensive Python package providing utilities for the Kurdish Sorani (سۆرانی) language, including number conversion, text processing, date formatting, and more.
Installation
pip install kurdish-sorani-tools
Features
- Number to Words — Convert numbers to Kurdish words
- Words to Number — Convert Kurdish words back to numbers
- Digit Conversion — Convert between English and Kurdish digits (٠١٢٣٤٥٦٧٨٩)
- Comma Formatting — Add/remove thousand separators
- Kurdish Detection — Check if text is Kurdish
- URL Fix — Fix spaces in URLs
- Ordinal Suffix — Add/remove ordinal suffixes (یەکەم، دووەم...)
- Date/Time — Format dates in Kurdish
- Keyboard Converter — Convert English keyboard layout to Kurdish
- Text Normalizer — Normalize Arabic characters to Kurdish
- Currency Formatter — Format amounts with Kurdish currency names
- Text Direction — Detect RTL/LTR direction
- Pluralization — Kurdish plural forms (ەکان، ان)
- String Utilities — Word count, slug, truncate, reverse
- Relative Time — "٥ خولەک لەمەوپێش"
- Phone Number — Format/validate Iraqi phone numbers
- Number Range — Convert ranges to Kurdish words
- Sentence Utils — Split/count sentences
- Number Validator — Validate Kurdish/English numbers
- Form Validators — Email, phone, required field validators
- Greeting — Time-based Kurdish greetings
- Calendar — Hijri and Kurdish (Rojhalati) calendar conversion
- Color Names — Color names in Kurdish
Quick Start
from kurdish_sorani_tools import *
# Number to words
print(number_to_words(125)) # سەد و بیست و پێنج
# Digit conversion
print(convert_en_to_ku("123")) # ١٢٣
print(convert_ku_to_en("١٢٣")) # 123
# Comma formatting
print(add_commas(1500000)) # 1,500,000
# Kurdish detection
print(is_kurdish("سڵاو")) # True
# Date formatting
from datetime import datetime
print(kurdish_date_format(datetime.now())) # ٠١ حوزەیران ٢٠٢٦
# Relative time
print(kurdish_relative_time(datetime(2026, 6, 1, 10, 0))) # ٥ خولەک لەمەوپێش
# Phone formatting
print(format_phone("07501234567")) # 0750 123 4567
# Greeting
print(kurdish_greeting()) # بەیانی باش / ڕۆژ باش / ...
# Pluralization
print(plural_definite("کتێب")) # کتێبەکان
License
MIT License - Dana Sherzad
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kurdish_sorani_tools-0.1.1.tar.gz.
File metadata
- Download URL: kurdish_sorani_tools-0.1.1.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edb619c55a7ae97cdf3889a48b0d1f52f19d891165823580055448b982fe2e7f
|
|
| MD5 |
5e0ab1be592cdc88b857e7ebc140b793
|
|
| BLAKE2b-256 |
b790729dbe9f156a2129421fe9ba151acfaca6519d260afe1b3e25cba65853d3
|
File details
Details for the file kurdish_sorani_tools-0.1.1-py3-none-any.whl.
File metadata
- Download URL: kurdish_sorani_tools-0.1.1-py3-none-any.whl
- Upload date:
- Size: 33.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bcf9a45382306f848dbb1535a5bc2ca656a862107bb6d09b3ab6bffb8cd6214
|
|
| MD5 |
1f10eed77735f382bb6462c234108b24
|
|
| BLAKE2b-256 |
24f37dcf9355daa516087c054dfd98b5ce6d56d8701d0ccab88f4e7da24257a4
|