Metadata-Version: 2.4
Name: ethio-kit
Version: 0.5.0
Summary: Zero-dependency Ethiopian calendar, Bahire Hasab, Ethiopic script/IME/subtitle tools, offline regions, payment/receipt adapters, ETB words/formatting, phone, and Fayda toolkit.
License: MIT License
        
        Copyright (c) 2026 ethio-kit contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Keywords: ethiopia,ethiopian-calendar,bahire-hasab,geez,amharic,oromo,etb,chapa,telebirr,geo
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# ethio-kit (v0.5.0)

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
```bash
# 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
```

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