Skip to main content

ethio-kit (v0.5.2)

CI 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.2

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.2
File Size Uploaded Provenance Actions
ethio_kit-0.5.2.tar.gz 20.1 kB Without provenance Details for ethio_kit-0.5.2.tar.gz

Built distribution (wheel)

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

Total release size: 36.0 kB

Release files / ethio_kit-0.5.2.tar.gz

Download URL ethio_kit-0.5.2.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8261e0d87a98d16ccca4cc3b7e0e32b1ad8c76490fe5d59ca5a7ba990e56dabc
BLAKE2b-256 checksum
How to use checksums
e7f6af86187a5474160665e082a7cc9ff5977b8a8bb5bcc505f2c59766c964ca
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.2-py3-none-any.whl

Download URL ethio_kit-0.5.2-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b0a02d7fae168b5c85488b3e19b559d439fec964a1505bd0d8259a0e37d1227
BLAKE2b-256 checksum
How to use checksums
980260cd42085b7ed21e52024a14c2154fc8e698ac0cc3f4fffcde4d7bfb4e42
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.2

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