daraja-py
Implementing Daraja API services
Implemented Features
- Lipa na mpesa online
- C2B
- B2C
Installation
To install the library using pip, run;
pip install daraja-py
Required parameters
Lipa na Mpesa
- phone_number
- amount
- BusinessShortCode
- CallBackURL
C2B
register url
- ConfirmationUrl
- ValidationUrl
simulate transaction
- phone_number
- amount
Usage
from darajapy import lipanampesa, c2b
lmn = lipanampesa.lipa_na_mpesa(
'07XXXXXXXX',
'500',
'324XXXX',
'https://www.somecallbackurl.com'
)
# The register transaction is only run once
c2b_register = c2b.register_url(
'https://www.someconfirmationurl.com',
'https://www.somevalidationurl.com'
)
c2b_simulate_transaction = c2b.simulate_c2b_transaction(
'07XXXXXXXX',
'500'
)
Metadata
Release files for daraja-py 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| daraja-py-1.0.1.tar.gz | 3.0 kB | Without provenance | Details for daraja-py-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| daraja_py-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for daraja_py-1.0.1-py3-none-any.whl |
Total release size: 7.5 kB
Release files / daraja-py-1.0.1.tar.gz
| Download URL | daraja-py-1.0.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a540c2205893af40fcc7ef7e19ff208c9bdb9e9d7e403d1e20e58ed458b2ebf5
|
|
BLAKE2b-256 checksum How to use checksums |
fb5b03dc44ca59b2fb245c5bd11283f17c33acfd5bed62c68e9ff9f0dc28b874
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3
|
Release files / daraja_py-1.0.1-py3-none-any.whl
| Download URL | daraja_py-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa12f2536641d2198dba0cbe4ea52d7d9176401c422b046551c040ce00bb6707
|
|
BLAKE2b-256 checksum How to use checksums |
c805c0cdb0995f00e0f9e4dd8788e32d18b2aa6224f4d441c6d0ec990ec08fef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3
|
Security for daraja-py 1.0.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.