Python client for MeSomb services.
Project description
Welcome to pymesomb 👋
Python client for MeSomb Services
You can check the full documentation of the api here
🏠 Homepage
Install
pip3 install pymesomb
Usage
Collect money from an account
from pymesomb.operations import PaymentOperation
from pymesomb.signature import Signature
from datetime import datetime
operation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')
response = operation.make_collect(100, 'MTN', '677550203', datetime.now(), Signature.generate_nonce())
print(response.is_operation_success())
print(response.is_transaction_success())
Depose money in an account
from pymesomb.operations import PaymentOperation
from pymesomb.signature import Signature
from datetime import datetime
operation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')
response = operation.make_deposit(100, 'MTN', '677550203', datetime.now(), Signature.generate_nonce())
print(response.is_operation_success())
print(response.is_transaction_success())
Get application status
from pymesomb.operations import PaymentOperation
operation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')
response = operation.get_status()
print(response.name)
Get transactions by IDs
from pymesomb.operations import PaymentOperation
operation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')
response = operation.get_transactions(['ID1', 'ID2'])
print(response)
Author
👤 Hachther LLC contact@hachther.com
- Website: https://www.hachther.com
- Twitter: @hachther
- Github: @hachther
- LinkedIn: @hachther
Show your support
Give a ⭐️ if this project helped you!
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
pymesomb-1.0.1.tar.gz
(5.9 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 pymesomb-1.0.1.tar.gz.
File metadata
- Download URL: pymesomb-1.0.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0979a5419abcd25c35bf9be607125fc20511c203d7809f9ffba607de034c8b5
|
|
| MD5 |
48ea69cd48c64815071dbf0748559ca5
|
|
| BLAKE2b-256 |
c5b53d3cf7f569b52fdc0983d5d09220e57497a4aaefdd9a43046d50481e47ef
|
File details
Details for the file pymesomb-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pymesomb-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75254bd7875bf566abe933c7c3a50f265d9def688594b19fcb5079423fa225a2
|
|
| MD5 |
196bc9df0f0060160a1ca90eb89f11ef
|
|
| BLAKE2b-256 |
9e4ac55d14227a34c6b2a3d102dda877737302246402bdf9951889eccaa9c75e
|