Skip to main content

AstraPay SDK

A lightweight Python SDK for M-Pesa STK Push built by Astra Softwares.

Installation

pip install astrapay



``bash
from astrapay import AstraMpesa

client = AstraMpesa(
    consumer_key="YOUR_KEY",
    consumer_secret="YOUR_SECRET",
    shortcode="174379",
    passkey="YOUR_PASSKEY",
    callback_url="https://yourdomain.com/callback"
)

res = client.pay(phone="254712345678", amount=100)
print(res)




---

### 🔹 Step 6: `LICENSE` (MIT)

```txt
MIT License

Copyright (c) 2025 Ishmael Bett

Permission is hereby granted, free of charge, to any person obtaining a copy...

Metadata

Release files for astrapay 0.1.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 astrapay 0.1.0
File Size Uploaded Provenance
astrapay-0.1.0.tar.gz 2.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 5.2 kB

Release files / astrapay-0.1.0.tar.gz

Download URL astrapay-0.1.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5c7d6100a10a679dee9850ad2054f66bb95d564d5b39c603fef08fa2f14fc331
BLAKE2b-256 checksum
How to use checksums
37dbce9c7b286d024dde246798019f82a9ee745229268408a8f91540449abea1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release files / astrapay-0.1.0-py3-none-any.whl

Download URL astrapay-0.1.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
843ee61e844c98dfeadf05dcca7e8d967ff684227864171f750c1a9e9165e111
BLAKE2b-256 checksum
How to use checksums
6358773ffd8fb5cb0f20667f421957ce001e70d9001aec43d83a3f38b8cfd906
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Security for astrapay 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 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