Optimized receipt extraction for Ethiopian banks using connection pooling
Project description
📄 ethiobank-receipts
🔍 Fast and Reliable Receipt Extraction from Ethiopian Banks
Optimized for speed and accuracy, ethiobank-receipts enables developers to extract structured data from digital bank receipts across major Ethiopian banks using multithreading and connection pooling.
⚠️ Disclaimer
This is not an official Python packages.
I am not affiliated with Ethio Telecom, Telebirr, or any Ethiopian bank (CBE, Dashen, Awash, BOA, Zemen).
This package is built purely for developer utility and research purposes and works by scraping publicly available receipt data.
✅ Features
-
🏦 Bank Support
- Commercial Bank of Ethiopia (CBE)
- Dashen Bank
- Awash Bank
- Bank of Abyssinia (BOA)
- Zemen Bank
- Telebirr (Ethio telecom)
-
⚡ High Performance
- Multithreaded PDF parsing
- Optimized HTTP connection pooling (
requests.Session)
-
🧠 Smart Automation
- Chrome WebDriver caching (for BOA receipts)
-
🧪 Developer Friendly
- Easy CLI interface
- Built-in test suite
📦 Installation
pip install ethiobank-receipts
📖 Usage (Python)
Extract from Any Bank by URL
from ethiobank_receipts import extract_receipt
from pprint import pprint
urls = {
"cbe": "https://apps.cbe.com.et:100/?id=FT*************",
"dashen": "https://receipt.dashensuperapp.com/receipt/**************",
"awash": "https://awashpay.awashbank.com:8225/-*****************",
"boa": "https://cs.bankofabyssinia.com/slip/?trx=****************",
"zemen": "https://share.zemenbank.com/rt/****************/pdf",
"tele": "CHQ0FJ403O"
}
for bank, url in urls.items():
print(f"Extracting from {bank}...")
try:
result = extract_receipt(bank, url)
pprint(result)
except Exception as e:
pprint(f"Failed: {e}")
Extract CBE with FT Number + Account
from ethiobank_receipts.extractors.cbe import extract_cbe_receipt_info_from_ft
data = extract_cbe_receipt_info_from_ft("FT25211G11JQ", "21827223")
print(data)
✔ Normalizes FT format (uppercase, trims spaces)
✔ Uses last 8 digits of account
❌ Raises ValueError if account digits < 8
Extract Telebirr by URL or Receipt ID
from ethiobank_receipts import extract_receipt
# With full URL
data1 = extract_receipt("tele", "https://transactioninfo.ethiotelecom.et/receipt/CHQ0FJ403O")
# Or just the ID
data2 = extract_receipt("tele", "CHQ0FJ403O")
🧰 CLI Usage
URL-based (all banks)
python -m ethiobank_receipts.cli cbe "https://apps.cbe.com.et:100/?id=FT25211G11JQ21827223"
python -m ethiobank_receipts.cli dashen "https://receipt.dashensuperapp.com/receipt/387ETAP2522000WK"
python -m ethiobank_receipts.cli tele CHQ0FJ403O
CBE helper
python -m ethiobank_receipts.cli cbe --ft FT25211G11JQ --account 21827223
📄 Sample Outputs
CBE Receipt
{
"payer_name": "John Doe",
"payer_account": "1000223344",
"receiver_name": "XYZ Trading PLC",
"receiver_account": "1000556677",
"amount": 1250.75,
"currency": "ETB",
"date": "2025-09-09T10:20:00",
"reference": "FT25211G11JQ",
"status": "SUCCESS"
}
Telebirr Receipt
{
"payer_phone": "0912345678",
"receiver_name": "ABC Market",
"receiver_account": "1000123456",
"amount": 500.00,
"currency": "ETB",
"date": "2025-09-09T09:10:00",
"reference": "CHQ0FJ403O",
"status": "SUCCESS"
}
Dashen Bank Receipt
{
"payer_name": "Jane Doe",
"payer_account": "2000112233",
"receiver_name": "FastPay PLC",
"receiver_account": "2000556677",
"amount": 750.25,
"currency": "ETB",
"date": "2025-09-09T11:30:00",
"reference": "387ETAP2522000WK",
"status": "SUCCESS"
}
Awash Bank Receipt
{
"payer_name": "Michael Abebe",
"payer_account": "3000334455",
"receiver_name": "Utility Service",
"receiver_account": "3000667788",
"amount": 980.00,
"currency": "ETB",
"date": "2025-09-09T08:45:00",
"reference": "AW25220099888",
"status": "SUCCESS"
}
BOA Receipt
{
"payer_name": "Sarah Mekonnen",
"payer_account": "4000445566",
"receiver_name": "E-Store Ethiopia",
"receiver_account": "4000998877",
"amount": 1500.00,
"currency": "ETB",
"date": "2025-09-09T14:15:00",
"reference": "BOA123456789",
"status": "SUCCESS"
}
Zemen Bank Receipt
{
"payer_name": "Daniel Kebede",
"payer_account": "5000556677",
"receiver_name": "XYZ Imports",
"receiver_account": "5000112233",
"amount": 2000.00,
"currency": "ETB",
"date": "2025-09-09T16:00:00",
"reference": "ZM987654321",
"status": "SUCCESS"
}
🌐 Hosting Limitations
Some receipt systems have regional restrictions:
-
Telebirr often blocks or times out requests from foreign IPs.
- Errors include:
403,ERR_FAILED, or DNS resolution issues. - ❌ Affected: VPS or cloud servers outside Ethiopia (e.g., AWS, Hetzner).
- ✅ Works Best: Servers hosted in Ethiopia (e.g., Ethio Telecom hosting, TeleCloud VPS).
- Errors include:
-
Bank of Abyssinia (BOA) receipts require Chrome WebDriver. The extractor caches driver sessions for performance.
🛠 Notes
- Always provide the correct reference number or receipt URL.
- For CBE, you may use FT number + last 8 digits of account instead of full URL.
- If fewer than 8 digits are provided for CBE accounts, a
ValueErroris raised.
📜 License
MIT License — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ethiobank_receipts-0.1.1.tar.gz.
File metadata
- Download URL: ethiobank_receipts-0.1.1.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea2359a15e03fedb814a91f4818dae7ce8336299339ee956415222b767133ae9
|
|
| MD5 |
e28bfe37a104f6f8e32c0084bccddf81
|
|
| BLAKE2b-256 |
9584939b5f0822109fce9c9b9c0658c47bd3b71c67eca651560c90d75e0475c5
|
Provenance
The following attestation bundles were made for ethiobank_receipts-0.1.1.tar.gz:
Publisher:
publish.yml on NahomAl/ethiobank_receipts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ethiobank_receipts-0.1.1.tar.gz -
Subject digest:
ea2359a15e03fedb814a91f4818dae7ce8336299339ee956415222b767133ae9 - Sigstore transparency entry: 488232262
- Sigstore integration time:
-
Permalink:
NahomAl/ethiobank_receipts@0d32607e061ecc90e253179ccef2daf6d8cff416 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NahomAl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0d32607e061ecc90e253179ccef2daf6d8cff416 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ethiobank_receipts-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ethiobank_receipts-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0562623a7d25a76e49162dc8e72db9871d982cf901b34a08865d4255c8def7bd
|
|
| MD5 |
f5033b1ced6addcce335eb2eb50c1903
|
|
| BLAKE2b-256 |
e2848b038ba9e0910d8d260d4fb91114ddfd8bbbc0875647d2f63a46c3035e37
|
Provenance
The following attestation bundles were made for ethiobank_receipts-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on NahomAl/ethiobank_receipts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ethiobank_receipts-0.1.1-py3-none-any.whl -
Subject digest:
0562623a7d25a76e49162dc8e72db9871d982cf901b34a08865d4255c8def7bd - Sigstore transparency entry: 488232293
- Sigstore integration time:
-
Permalink:
NahomAl/ethiobank_receipts@0d32607e061ecc90e253179ccef2daf6d8cff416 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NahomAl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0d32607e061ecc90e253179ccef2daf6d8cff416 -
Trigger Event:
push
-
Statement type: