Skip to main content

ethio-kit (v0.5.3)

PyPI npm pub.dev

🌐 Live Interactive Playground: https://meismem.github.io/ethio-kit/

Zero-dependency, browser-safe Ethiopian developer & creator foundation with spec-locked parity across Python (PyPI), JavaScript/TypeScript (npm), and Dart/Flutter (pub.dev)—verified against spec/golden_vectors.json.

Modules Included

  • Calendar & Bahire Hasab: Beyene–Kudlek / Unicode ICU Ethiopian ↔ Gregorian conversion (1800–2200 daily ICU verified), 12-hour EAT clock, Ge'ez numerals, Bahire Hasab computus (Fasika/Siklet/Nineveh/Abiy Tsom), and fixed Ethiopian holidays.
  • Ethiopic Script, IME & Creator Tools: Homophone normalization (normalize_ethiopic), full labialized phonetic transliteration (fidel_to_latin), reverse phonetic typing (latin_to_fidel), URL slugifier (ethiopic_slugify), Ethiopic-aware subtitle line wrapping (wrap_subtitle_lines), and script composition stats (count_ethiopic_stats).
  • Offline Ethiopian Geo Dataset: All 12 Regional States + 2 Chartered Cities with English/Amharic/Afaan Oromo names, capitals, dialing prefixes, and homophone-aware search (list_regions, get_region, find_regions).
  • Unified Payment & Receipt Adapter: Transport-agnostic checkout request builders for Chapa, Telebirr, SantimPay, and ArifPay (build_checkout_request), zero-dependency browser/Node/Python/Dart Chapa HMAC-SHA256 webhook verification (verify_chapa_webhook), and bank/wallet receipt URL/reference parsing (parse_receipt_reference).
  • Phone, Fayda & ETB Currency: ASCII-only Ethio Telecom (09…) / Safaricom (07…) parsing, 12-digit Fayda format checking, arbitrary-precision ETB formatting & splitting (format_etb, split_birr, splitBirrBigInt), and multilingual ETB amount-in-words (etb_to_words in en, am, om).

Running Tests Locally

# Monorepo sync & browser-safety check
python3 scripts/check_sync.py

# Python
PYTHONPATH=python python3 -m unittest discover -s python/tests -v

# JavaScript / TypeScript (ESM + CJS + 146,462-day Unicode ICU check)
cd js && npm test

# Dart / Flutter
cd dart && dart pub get && dart analyze --fatal-infos && dart test

Interactive Playground

Open index.html in any browser to test all features live with zero build step:

  • Latin → Fidel IME: Type selam → ሰላም with full labialized support (qwanqwa → ቋንቋ).
  • Calendar & Clock: Live Ethiopian ↔ Gregorian conversion & 12-hour Ethiopian local clock.
  • Multilingual ETB in Words: Convert amounts to English, Amharic, and Afaan Oromo words.
  • Phone & Fayda: 09/07 auto-detection, carrier badges, and 12-digit Fayda checking.
  • Payments & Receipts: Live Chapa/Telebirr checkout request builder & HMAC signature validator.
  • Copyable Snippets: Working code snippets for Python, JS/TS, and Dart.

Publishing

  • PyPI: cd python && python3 -m build && twine upload dist/*
  • npm: cd js && npm publish --access public
  • pub.dev: cd dart && dart pub publish

Metadata

Release files for ethio-kit 0.5.3

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

Source distribution (sdist)

Source distribution for ethio-kit 0.5.3
File Size Uploaded Provenance Actions
ethio_kit-0.5.3.tar.gz 20.0 kB Without provenance Details for ethio_kit-0.5.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ethio-kit 0.5.3
File Interpreter ABI Platform Actions
ethio_kit-0.5.3-py3-none-any.whl Python 3 none any Details for ethio_kit-0.5.3-py3-none-any.whl

Total release size: 35.9 kB

Release files / ethio_kit-0.5.3.tar.gz

Download URL ethio_kit-0.5.3.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b787be552dd22209497d5a5181dfb834fa7eeaf554349e0ddc6017fdae6cf36f
BLAKE2b-256 checksum
How to use checksums
931184166cb91c036b28bfdbfb7fc1e6de8eab8e1b1b8850e9f2f965e12b723d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / ethio_kit-0.5.3-py3-none-any.whl

Download URL ethio_kit-0.5.3-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c999e8ce266fd4d2321f87decb8f7e38535b4e6fa7bef1a4dc488d3038a9847a
BLAKE2b-256 checksum
How to use checksums
46121cdfdd60cb738fae6d749f2398d67ef0d70bd3643102c87cff6f3d5cb3c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Security for ethio-kit 0.5.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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