Skip to main content

durrapay (Python)

Client for the DurraPay Platform API. Python 3.8+.

pip install durrapay
import os
from durrapay import DurraPay

dp = DurraPay(api_key=os.environ["DURRAPAY_KEY"])   # dpk_test_... or dpk_live_...

# Who am I?
print(dp.me())

# Collect in Kenya (M-Pesa STK)
c = dp.collections.stk(
    phone="254712345678",
    amount_minor=150000,        # KES 1,500.00 (minor units)
    currency="KES",
    reference="ORDER-1001",
)
dp.collections.get(c["payment_id"])

# Send cross-border (FX + payout)
q = dp.transfers.quote(from_currency="KES", destination_country="TZ", from_amount_minor=1_000_000)
dp.transfers.create(quote_id=q["quote_id"], dest_type="PHONE", dest_phone="255712345678", dest_name="Jane Doe")

# Customers, recipients, payment links, balances, usage…
dp.customers.create(name="Jane Doe", email="jane@example.com")
dp.balances()

Idempotency keys are auto-generated for POSTs (override with idempotency_key=). Errors raise DurraPayError with .status, .code, and .body.

Metadata

Release files for durrapay 0.1.1

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

Source distribution (sdist)

Source distribution for durrapay 0.1.1
File Size Uploaded Provenance Actions
durrapay-0.1.1.tar.gz 3.3 kB Without provenance Details for durrapay-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 6.7 kB

Release files / durrapay-0.1.1.tar.gz

Download URL durrapay-0.1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3b12a2f482440a1c7b18dafbfb23aed30819c582fd9064f59a81052a5b56e9b5
BLAKE2b-256 checksum
How to use checksums
811baab08679e128b760a5de08caa5a7bd5a98284bacf0ee44a726c0465614ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / durrapay-0.1.1-py3-none-any.whl

Download URL durrapay-0.1.1-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83072cd9a6b2c8895d2d1902f6a31cf67cff7e601a0abd37e014f85fd5a8cb1d
BLAKE2b-256 checksum
How to use checksums
71137da97df2b2f56909b7437919d99e4c04c995e4286a0a9222d5a08dc05568
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Security for durrapay 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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