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-1.0.1.tar.gz (3.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-1.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for parsepesa-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cf972fb2a96ce0bd0ff9aa3bfc941ae24105c9aa92081728b2db4e695d457cb7
MD5 d124ab1c3def89e16508c6262684e250
BLAKE2b-256 46878d8f5ca8d63a40d1504874c038ef7bc3f3d513af64349d04a90124a8837d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for parsepesa-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d540d3b731d004a0b86daf290ac5eaa056e29ca046608ff575610fcb9cbeaf0
MD5 d0640668cba8d6d5cd4a488577330d54
BLAKE2b-256 df0d947c2ed531649411fdde3b077f58d02ad93aeaabb53dc56e4f29a0b84544

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