Skip to main content

ethio_kit 0.5.3 copy "ethio_kit: ^0.5.3" to clipboard
ethio_kit: ^0.5.3 copied to clipboard

Zero-dependency Ethiopian calendar, Bahire Hasab, Ethiopic script/IME/subtitle tools, offline regions, payment/receipt adapters, ETB words/formatting, phone, and Fayda toolkit.

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
0
likes
130
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Zero-dependency Ethiopian calendar, Bahire Hasab, Ethiopic script/IME/subtitle tools, offline regions, payment/receipt adapters, ETB words/formatting, phone, and Fayda toolkit.

Repository (GitHub)

License

MIT (license)

More

Packages that depend on ethio_kit