<h1 align="center">Welcome to pymesomb 👋</h1>
<p>
<img alt="Version" src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" />
<a href="https://mesomb.hachther.com/en/api/v1.1/schema/" target="_blank">
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
</a>
<a href="#" target="_blank">
<img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" />
</a>
<a href="https://twitter.com/hachther" target="_blank">
<img alt="Twitter: hachther" src="https://img.shields.io/twitter/follow/hachther.svg?style=social" />
</a>
</p>
> Python client for MeSomb Services
>
> You can check the full [documentation of the api here](https://mesomb.hachther.com/en/api/v1.1/schema/)
### 🏠 [Homepage](https://mesomb.com)
## Install
```sh
pip3 install pymesomb
```
## Usage
### Collect money from an account
```python
from pymesomb.operations import PaymentOperation
from pymesomb.utils import RandomGenerator
from datetime import datetime
operation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')
response = operation.make_collect({
'amount': 100,
'service': 'MTN',
'payer': '670000000',
'date': datetime.now(),
'nonce': RandomGenerator.nonce(),
'trxID': '1'
})
print(response.is_operation_success())
print(response.is_transaction_success())
```
### Depose money in an account
```python
from pymesomb.operations import PaymentOperation
from pymesomb.utils import RandomGenerator
from datetime import datetime
operation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')
response = operation.make_deposit({
'amount': 100,
'service': 'MTN',
'receiver': '670000000',
'date': datetime.now(),
'nonce': RandomGenerator.nonce(),
'trxID': '1'
})
print(response.is_operation_success())
print(response.is_transaction_success())
```
### Get application status
```python
from pymesomb.operations import PaymentOperation
operation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')
response = operation.get_status()
print(response.name)
```
### Get transactions by IDs
```python
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](https://twitter.com/hachther)
* Github: [@hachther](https://github.com/hachther)
* LinkedIn: [@hachther](https://linkedin.com/in/hachther)
## Show your support
Give a ⭐️ if this project helped you!
# 2.0.0 (2025-02-10)
## Added
- Add fundraising operations
- Add wallet operations
- Add refund transaction operation
## === BREAKING CHANGES ===
- Parameters for make_collect and make_deposit are not more passed as dict but as keyword arguments
- Remove security operations
- Change parameter ts(str) to date(datetime) in Transaction class
# 1.1.1 (2025-01-31)
- Integration of Yango refill
# 1.1.0 (2024-09-02)
- Add wallet operations: create wallet, update wallet, get wallet, delete wallet, adjust wallet and list wallets.
# 1.0.4 (2024-04-28)
- Add function to detect phone number operator in cameroon
# 1.0.3 (2024-01-24)
- Handle case when trxID is not string
- Fix crash to display response
- Add raw_response in TransactionResponse to store MeSomb response.
# 1.0.2 (2023-07-25)
## === BREAKING CHANGES ===
Only one parameter is now passed to make_deposit and make_collect. The parameter is a Map that will contain all details of your request.
All method is now returning MeSomb model not dict
# 1.0.0 (2022-10-20)
First release of the module.
Raw data
{
"_id": null,
"home_page": "https://github.com/hachther/mesomb-python-client.git",
"name": "pymesomb",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "MeSomb, MobileMoney, OrangeMoney, YangoRefill",
"author": "Hachther LLC",
"author_email": "contact@hachther.com",
"download_url": "https://pypi.org/project/pymesomb/",
"platform": null,
"description": "<h1 align=\"center\">Welcome to pymesomb \ud83d\udc4b</h1>\n<p>\n <img alt=\"Version\" src=\"https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000\" />\n <a href=\"https://mesomb.hachther.com/en/api/v1.1/schema/\" target=\"_blank\">\n <img alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\" />\n </a>\n <a href=\"#\" target=\"_blank\">\n <img alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" />\n </a>\n <a href=\"https://twitter.com/hachther\" target=\"_blank\">\n <img alt=\"Twitter: hachther\" src=\"https://img.shields.io/twitter/follow/hachther.svg?style=social\" />\n </a>\n</p>\n\n> Python client for MeSomb Services\n> \n> You can check the full [documentation of the api here](https://mesomb.hachther.com/en/api/v1.1/schema/)\n\n### \ud83c\udfe0 [Homepage](https://mesomb.com)\n\n## Install\n\n```sh\npip3 install pymesomb\n```\n\n## Usage\n\n### Collect money from an account\n\n```python\nfrom pymesomb.operations import PaymentOperation\nfrom pymesomb.utils import RandomGenerator\nfrom datetime import datetime\n\noperation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')\nresponse = operation.make_collect({\n 'amount': 100,\n 'service': 'MTN',\n 'payer': '670000000',\n 'date': datetime.now(),\n 'nonce': RandomGenerator.nonce(),\n 'trxID': '1'\n})\nprint(response.is_operation_success())\nprint(response.is_transaction_success())\n```\n\n### Depose money in an account\n\n```python\nfrom pymesomb.operations import PaymentOperation\nfrom pymesomb.utils import RandomGenerator\nfrom datetime import datetime\n\noperation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')\nresponse = operation.make_deposit({\n 'amount': 100,\n 'service': 'MTN',\n 'receiver': '670000000',\n 'date': datetime.now(),\n 'nonce': RandomGenerator.nonce(),\n 'trxID': '1'\n})\nprint(response.is_operation_success())\nprint(response.is_transaction_success())\n```\n\n### Get application status\n\n```python\nfrom pymesomb.operations import PaymentOperation\n\noperation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')\nresponse = operation.get_status()\nprint(response.name)\n```\n\n### Get transactions by IDs\n\n```python\nfrom pymesomb.operations import PaymentOperation\n\noperation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')\nresponse = operation.get_transactions(['ID1', 'ID2'])\nprint(response)\n```\n\n## Author\n\n\ud83d\udc64 **Hachther LLC <contact@hachther.com>**\n\n* Website: https://www.hachther.com\n* Twitter: [@hachther](https://twitter.com/hachther)\n* Github: [@hachther](https://github.com/hachther)\n* LinkedIn: [@hachther](https://linkedin.com/in/hachther)\n\n## Show your support\n\nGive a \u2b50\ufe0f if this project helped you!\n\n\n# 2.0.0 (2025-02-10)\n## Added\n- Add fundraising operations\n- Add wallet operations\n- Add refund transaction operation\n## === BREAKING CHANGES ===\n- Parameters for make_collect and make_deposit are not more passed as dict but as keyword arguments\n- Remove security operations\n- Change parameter ts(str) to date(datetime) in Transaction class\n\n# 1.1.1 (2025-01-31)\n- Integration of Yango refill\n\n# 1.1.0 (2024-09-02)\n- Add wallet operations: create wallet, update wallet, get wallet, delete wallet, adjust wallet and list wallets.\n\n# 1.0.4 (2024-04-28)\n- Add function to detect phone number operator in cameroon\n\n# 1.0.3 (2024-01-24)\n- Handle case when trxID is not string \n- Fix crash to display response\n- Add raw_response in TransactionResponse to store MeSomb response.\n\n# 1.0.2 (2023-07-25)\n## === BREAKING CHANGES ===\nOnly one parameter is now passed to make_deposit and make_collect. The parameter is a Map that will contain all details of your request.\n\nAll method is now returning MeSomb model not dict\n\n# 1.0.0 (2022-10-20)\nFirst release of the module.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python client for MeSomb services.",
"version": "2.0.0",
"project_urls": {
"Download": "https://pypi.org/project/pymesomb/",
"Homepage": "https://github.com/hachther/mesomb-python-client.git"
},
"split_keywords": [
"mesomb",
" mobilemoney",
" orangemoney",
" yangorefill"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d90c70b03176647bc0eba29a779d52e767b8bace77f34cbd9e78560e4475ef84",
"md5": "e8b62c804e33e741211a7aa219038921",
"sha256": "f5d8e6d2ee906355dd42e7c091f8dc203a1d358b61398cc712157ae82b5b1cc5"
},
"downloads": -1,
"filename": "pymesomb-2.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e8b62c804e33e741211a7aa219038921",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 13567,
"upload_time": "2025-03-10T22:34:07",
"upload_time_iso_8601": "2025-03-10T22:34:07.780287Z",
"url": "https://files.pythonhosted.org/packages/d9/0c/70b03176647bc0eba29a779d52e767b8bace77f34cbd9e78560e4475ef84/pymesomb-2.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-03-10 22:34:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hachther",
"github_project": "mesomb-python-client",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pymesomb"
}