Lightweight Python SDK for M-Pesa STK Push by Astra Softwares
Project description
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...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
astrapay-0.1.0.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file astrapay-0.1.0.tar.gz.
File metadata
- Download URL: astrapay-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c7d6100a10a679dee9850ad2054f66bb95d564d5b39c603fef08fa2f14fc331
|
|
| MD5 |
b87b762158beb04aab92ea01fa517427
|
|
| BLAKE2b-256 |
37dbce9c7b286d024dde246798019f82a9ee745229268408a8f91540449abea1
|
File details
Details for the file astrapay-0.1.0-py3-none-any.whl.
File metadata
- Download URL: astrapay-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
843ee61e844c98dfeadf05dcca7e8d967ff684227864171f750c1a9e9165e111
|
|
| MD5 |
c08c1f32ed2105f1883b439dc09c27e9
|
|
| BLAKE2b-256 |
6358773ffd8fb5cb0f20667f421957ce001e70d9001aec43d83a3f38b8cfd906
|