Metadata-Version: 2.4
Name: umojasdk
Version: 0.1.0
Summary: One SDK. Every African payment. Python SDK for M-Pesa, Airtel Money, and more.
Project-URL: Homepage, https://umojasdk.dev
Project-URL: Repository, https://github.com/knelso/umoja_sdk
Project-URL: Documentation, https://umojasdk.dev/docs
Author-email: Synapse Softwares <hello@synapsesoftwares.com>
License: MIT
Keywords: africa,airtel-money,daraja,kenya,m-pesa,mobile-money,mpesa,payment
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Requires-Dist: httpx>=0.27.0
Provides-Extra: dev
Requires-Dist: anyio[trio]>=4.0.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# umojasdk (Python)

Python SDK for African mobile money integrations — M-Pesa, Airtel Money, and more.

Part of the [UmojaSDK](https://umojasdk.dev) project by [Synapse Softwares](https://synapsesoftwares.com).

## Install

```bash
pip install umojasdk
```

## Usage

```python
from umojasdk import UmojaMpesa, MpesaConfig, STKPushRequest

mpesa = UmojaMpesa(MpesaConfig(
    consumer_key="your_key",
    consumer_secret="your_secret",
    shortcode="174379",
    passkey="your_passkey",
    callback_url="https://yourapp.com/mpesa/callback",
    env="sandbox"
))

result = mpesa.stk_push(STKPushRequest(
    phone="0712345678",
    amount=1500,
    reference="ORDER-001"
))

print(result.checkout_request_id)
```

See the [main repository](https://github.com/knelso/umoja_sdk) for full documentation.
