Skip to main content

arabickit

Small, dependency-free helpers to clean and normalize Arabic text before search, comparison, NLP or LLM prompts. Works as a library or a CLI.

from arabickit import clean, strip_tashkeel, digits_to_ascii

clean("  أَهْلاً   بِكَ  ١٢  ")      # 'اهلا بك 12'
strip_tashkeel("بِسْمِ اللَّهِ")      # 'بسم الله'
digits_to_ascii("٢٠٢٦")               # '2026'
echo "أَهْلاً بِكَ ١٢" | python arabickit.py

Install

pip install arabickit

Or copy arabickit.py into your project, it has no dependencies.

Functions

Function What it does
strip_tashkeel remove harakat and Quranic marks
strip_tatweel remove kashida (ـ)
normalize_letters أ إ آ ٱ -> ا, ى -> ي
normalize_ta_marbuta ة -> ه (optional, lossy)
digits_to_ascii / digits_to_arabic Arabic-Indic and Persian digits <-> 0-9
normalize_punct ، ؛ ؟ -> , ; ?
clean the usual combination in one call

Normalization is lossy by design (good for matching, not for display). Keep the original text if you need to show it.

python -m pytest

MIT licensed.

Metadata

Release files for arabickit 0.1.0

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

Source distribution (sdist)

Source distribution for arabickit 0.1.0
File Size Uploaded Provenance Actions
arabickit-0.1.0.tar.gz 3.5 kB With provenance Details for arabickit-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 7.6 kB

Release files / arabickit-0.1.0.tar.gz

Download URL arabickit-0.1.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8b39b0ca0bb2eccd220bed9ffafdcde8cb1e77a23947894535fb4c20257b1168
BLAKE2b-256 checksum
How to use checksums
0a84d074a3875ab22cbb005e864f976e3e950d5bf2a0eb39c5324d84dc396e33
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 28, 2026.

Transparency log

Release files / arabickit-0.1.0-py3-none-any.whl

Download URL arabickit-0.1.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6c6f96f823449bd07ffbe44b2e2888c092636b4e7d9e51f00283d9e4f3ffd18
BLAKE2b-256 checksum
How to use checksums
b00c6cee616be19a264aea1400e489e57a3fb866c559d135bee7a0ca94e771b3
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 28, 2026.

Transparency log

Security for arabickit 0.1.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.

Select from 2 files

Attestation for arabickit-0.1.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 28, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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