Skip to main content

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 and manage your webhooks.

Installation

pip install parsepesa

Quick Start

from parsepesa import ParsePesa

client = ParsePesa("your_api_key_here")

# 1. Parse a message
result = client.parse("Confirmed. Ksh500.00 sent to...")

# 2. Manage Parsing Callbacks
# Set where you want the JSON result sent after every parse
client.parsing_webhooks.create("https://api.yoursite.com/parse-callback")

# 3. Manage Daraja Proxy (Safaricom Webhooks)
# Bridge Safaricom directly to your backend
client.daraja_proxy.create(
    name="Payment Bridge",
    url="https://api.yoursite.com/mpesa-bridge"
)

# 4. Check Balance
print(client.get_balance())

Features

  • Unified Webhooks: Manage both Daraja Proxy and Parsing Callback webhooks.
  • Full Account Access: Check balances and stats via code.
  • Standardized Results: Structured JSON for all M-Pesa formats.

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-2.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

parsepesa-2.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file parsepesa-2.0.0.tar.gz.

File metadata

  • Download URL: parsepesa-2.0.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for parsepesa-2.0.0.tar.gz
Algorithm Hash digest
SHA256 b3ab54a18cd3928527c759486ce5e34e0b76dbc4d198753578d005a1c5e3e98c
MD5 3f93c970e2c0da668572676c603fd469
BLAKE2b-256 90b03ea24e790e9ad8064c5c62bb240363dba713bea7033f53a8b74ddcc3939e

See more details on using hashes here.

File details

Details for the file parsepesa-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: parsepesa-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for parsepesa-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3e070926ad18e3abf6c161a09cd1db52659fba114cd44a3394c6af6740ab9d4
MD5 341e31b04983103cb46a75fdf2867bf0
BLAKE2b-256 9290c69e8c337ae89a1904cf93d3406ab5191c5287458f4261ff582f89db6088

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