sahlkit
مكتبة Python خفيفة لأدوات يومية: نصوص، أرقام، وتحقق بسيط من البيانات (بما فيها أرقام الجوال السعودية).
Sahlkit is a small, dependency-free utility library for text, numbers, and light validation.
التثبيت | Install
من PyPI (بعد النشر)
pip install sahlkit
من ملف الحزمة في Workspace (جاهز الآن)
بعد تنزيل المشروع عبر Download workspace:
pip install /path/to/sahlkit/dist/sahlkit-1.0.0-py3-none-any.whl
أو من مجلد المشروع:
cd sahlkit
pip install .
الاستخدام | Usage
from sahlkit import (
contains_arabic,
slugify,
truncate_words,
clamp,
format_compact,
percent_of,
is_saudi_mobile,
is_email_like,
)
print(contains_arabic("مرحبا")) # True
print(slugify("My Product 2026")) # my-product-2026
print(format_compact(1_500_000)) # 1.5M
print(is_saudi_mobile("0512345678")) # True
التطوير | Development
cd sahlkit
pip install -e ".[dev]"
pytest
python -m build
النشر على PyPI | Publish to PyPI
- أنشئ حسابًا على pypi.org وانسخ API token.
- نفّذ:
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=pypi-xxxxxxxx
twine upload dist/*
الترخيص
MIT
Built with BrainDaemon
Release files for sahlkit 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sahlkit-1.0.1.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sahlkit-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / sahlkit-1.0.1.tar.gz
| Download URL | sahlkit-1.0.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66dd82a6ad4a7c0d63edd56af4549fbbf848908d41363536d3d100cfa01fb1d6
|
|
BLAKE2b-256 checksum How to use checksums |
62946157ff070b1a5d3f5a84a5873b41ad7c46a3071044ef45d1f10f69e34a61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / sahlkit-1.0.1-py3-none-any.whl
| Download URL | sahlkit-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
526b6b350fa1e37a598a5156ddc576c8cfba2d6ac87fd461afe169d47d0b938a
|
|
BLAKE2b-256 checksum How to use checksums |
64e3ca401ecb7665c5b7137a0ec7d29f966017783684f4b9a37f6440a9ab5c79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|