Skip to main content

daraja-sdk-py

Production-grade Python SDK for Safaricom M-Pesa Daraja API.

Part of the daraja-sdk monorepo. See the documentation for usage.

Install

pip install daraja-sdk-py

Quick start

from daraja import Mpesa, MpesaConfig

client = Mpesa(MpesaConfig(
    consumer_key="...",
    consumer_secret="...",
    environment="sandbox",
))

License

MIT

Metadata

Release files for daraja-sdk-py 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 daraja-sdk-py 2.0.0
File Size Uploaded Provenance Actions
daraja_sdk_py-2.0.0.tar.gz 125.8 kB Without provenance Details for daraja_sdk_py-2.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 200.3 kB

Release files / daraja_sdk_py-2.0.0.tar.gz

Download URL daraja_sdk_py-2.0.0.tar.gz
Size 125.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dec538a3485c11fc9e0b0d153e717023e82904eb241fb84112508a2081971107
BLAKE2b-256 checksum
How to use checksums
94a3673e41a4ec178333a3633de7723b1447eb9a2f06bca838f6375d32f50b7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL daraja_sdk_py-2.0.0-py3-none-any.whl
Size 74.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b18bf909bc83585255a900785866657c2ec8729e7e247221858f7d2d8b5e88c0
BLAKE2b-256 checksum
How to use checksums
2636d04b7e5a462ffc5451b1bc4fbdb13703675757f0ef3fdd436935eb581302
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for daraja-sdk-py 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