Skip to main content

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

Metadata

Release files for parsepesa 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parsepesa 2.0.0
File Size Uploaded Provenance Actions
parsepesa-2.0.0.tar.gz 5.5 kB Without provenance Details for parsepesa-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for parsepesa 2.0.0
File Interpreter ABI Platform Actions
parsepesa-2.0.0-py3-none-any.whl Python 3 none any Details for parsepesa-2.0.0-py3-none-any.whl

Total release size: 11.0 kB

Release files / parsepesa-2.0.0.tar.gz

Download URL parsepesa-2.0.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b3ab54a18cd3928527c759486ce5e34e0b76dbc4d198753578d005a1c5e3e98c
BLAKE2b-256 checksum
How to use checksums
90b03ea24e790e9ad8064c5c62bb240363dba713bea7033f53a8b74ddcc3939e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / parsepesa-2.0.0-py3-none-any.whl

Download URL parsepesa-2.0.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3e070926ad18e3abf6c161a09cd1db52659fba114cd44a3394c6af6740ab9d4
BLAKE2b-256 checksum
How to use checksums
9290c69e8c337ae89a1904cf93d3406ab5191c5287458f4261ff582f89db6088
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for parsepesa 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page