Official Python SDK for ParsePesa - The M-Pesa SMS Parsing API
Project description
ParsePesa Python SDK
Official Python client for the ParsePesa API. Convert raw M-Pesa SMS notifications into structured JSON data instantly.
Installation
pip install parsepesa
Quick Start
from parsepesa import ParsePesa
# Initialize the client
client = ParsePesa("your_api_key_here")
# Parse a single message
raw_sms = "Confirmed. Ksh500.00 sent to NEWTON MWANGI on 12/05/26 at 2:30 PM. Transaction ID: RKL8923ZXC."
result = client.parse(raw_sms)
if result['success']:
data = result['data']
print(f"Transaction ID: {data['transaction_id']}")
print(f"Amount: {data['amount']} {data['currency']}")
print(f"Type: {data['type']}")
Features
- Single Parsing: Convert one SMS to JSON.
- Batch Parsing: Process up to 50 messages in a single request.
- Robust Engine: Handles standard M-Pesa, Till, Paybill, and Merchant formats.
- AI Fallback: Automatically uses Gemini-powered parsing for complex or non-standard messages.
Documentation
For full API documentation, visit parsepesa.nexoracreatives.co.ke/docs.
© 2026 Nexora Creative Solutions
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
parsepesa-1.0.0.tar.gz
(3.2 kB
view details)
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 parsepesa-1.0.0.tar.gz.
File metadata
- Download URL: parsepesa-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40788fa8a7862ec8ad3b5fa3811635a92375e64df6a49e62017483878a41792d
|
|
| MD5 |
022dd6a7f8008bb12800faa9c1e37cb9
|
|
| BLAKE2b-256 |
528008e86f2b896ea7b56bda46906a1da6369638ccc088194236ad35283773b2
|
File details
Details for the file parsepesa-1.0.0-py3-none-any.whl.
File metadata
- Download URL: parsepesa-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4feb6f56376237c7cedf1c84be17486ff768ab7c9ebea3b07a9075179c5997ab
|
|
| MD5 |
68a2ca0ae21e4a71725b79b52963210f
|
|
| BLAKE2b-256 |
d850f8083753b353600bf40998eff05ae5dccf65b6f1c753157a738ec2a587a5
|