Skip to main content

Python SDK for the iHela financial services API

Project description

iHela SDK

PyPI version Python versions License Docs

Python SDK for the iHela Credit Union API for financial services in Burundi.

Installation

pip install ihela-sdk

With Django integration:

pip install "ihela-sdk[django]"

Or with uv:

uv add ihela-sdk
# with django extra
uv add "ihela-sdk[django]"

Quick Start

from ihela_sdk import MerchantClient

client = MerchantClient("your_client_id", "your_client_secret", prod=False)

For async applications (FastAPI, async Django):

from ihela_sdk import AsyncMerchantClient

client = AsyncMerchantClient("your_client_id", "your_client_secret", prod=False)

Exception Handling

from ihela_sdk import iHelaError, iHelaAPIError, iHelaAuthenticationError

try:
    bill = client.init_bill(2000, "client@example.com", "Payment", "ref-001")
except iHelaAuthenticationError:
    print("Authentication failed. Check your credentials.")
except iHelaAPIError as e:
    print(f"API error (HTTP {e.status_code})")
except iHelaError:
    print("A client error occurred.")

Features

  • Merchant Services: Bill init/verify, cash-in, bank lists, customer lookup
  • Banking Services: Deposits, withdrawals, account lookup/balance, statements, transaction fees
  • Agent Services: Operations, withdrawal validation
  • OAuth2: Client credentials and authorization code flows
  • Django Integration: Pre-built views for django-allauth
  • Async Support: Full async client variants using httpx

Documentation

Full documentation at UbuhingaVizion.github.io/ihela-sdk.

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ihela_sdk-0.2.0.tar.gz (121.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ihela_sdk-0.2.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file ihela_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: ihela_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 121.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ihela_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9eec01051700ddbfa872fb26c404f7869fd9ea6c7edca264d0325bef4e732076
MD5 4b89cf6084ecbe368fffef4d88f06cca
BLAKE2b-256 bc49d8f774150866ed5e5890ac2f693b647b35a6bffed55cb336a1d28ec066a4

See more details on using hashes here.

File details

Details for the file ihela_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ihela_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ihela_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51b114d50a4e4a6e53981070d9bd819482a85ce1efb5d62d5772ee4e7d9ad3eb
MD5 6bb04ff1b0a3b265382c5827fa1c064d
BLAKE2b-256 241ce092cfc7d471315837df5405db8e707394e0fc2e7c2946b35c4b1767c186

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page