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.1.1.tar.gz (120.4 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.1.1-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ihela_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 120.4 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.1.1.tar.gz
Algorithm Hash digest
SHA256 0b06bb7de59bf6a03be4ebe9fba9379a3c079a50f6435522a7f4e67122ff9720
MD5 ac06b48bf48b51844731af6266c86f1a
BLAKE2b-256 a5cf34bb65648bb0186c593333d1469795ec354f6190f475a9552f5f753343e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ihela_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.9 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad46aa2428a6bc219d5da058def2f6f5f7940b7a2e9f53db0e21517333ef5930
MD5 bf89ff999a4a22abd95fc73034531fc2
BLAKE2b-256 7b932456aa1e94919857e615d66f467689eb47d773fbd836ab159a2242c080e3

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