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

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsepesa-1.0.2.tar.gz
  • Upload date:
  • Size: 3.6 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.2.tar.gz
Algorithm Hash digest
SHA256 c1e401da0d804734368aecbd2c0154e0aec88bd66cda551f4c16aa73adaf0a9d
MD5 42336335cc57ac873ed9095ecbc67b82
BLAKE2b-256 f46d9326c7258c9f5d83ce722a4192fb7191aefd96bde9e89f634e0e9c2940ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: parsepesa-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df453664188bba2785a76c3064a465fb275231b6d2d2b956f13ad9a34abc4388
MD5 c4eedb3795c11f8625b0f7bfad55b3ec
BLAKE2b-256 facb3598e37d1e5126951903bb6a6206be5cf959633dbf90031e2c54f22a1ca7

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