pymesomb


Namepymesomb JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/hachther/mesomb-python-client.git
SummaryPython client for MeSomb services.
upload_time2024-09-06 09:43:49
maintainerNone
docs_urlNone
authorHachther LLC
requires_pythonNone
licenseMIT
keywords mesomb mobilemoney orangemoney
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <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!


# 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",
    "author": "Hachther LLC",
    "author_email": "contact@hachther.com",
    "download_url": "https://files.pythonhosted.org/packages/7e/aa/9af2b1ca00e8539ece81430799bab00430a003a1953458e489c64b18c371/pymesomb-1.1.0.tar.gz",
    "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# 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": "1.1.0",
    "project_urls": {
        "Download": "https://pypi.org/project/pymesomb/",
        "Homepage": "https://github.com/hachther/mesomb-python-client.git"
    },
    "split_keywords": [
        "mesomb",
        " mobilemoney",
        " orangemoney"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f8976d914b37895dfe815cdc1ac4ddcc5de722acec068b31ca23cb8b7ea2f9fe",
                "md5": "cd57bee88cdde406aa71eccb551eba0d",
                "sha256": "fa88a5c3ca0bc5e9f632ddebabdc51f3dcc366bd9cc2e51c672cdda486eb3f81"
            },
            "downloads": -1,
            "filename": "pymesomb-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cd57bee88cdde406aa71eccb551eba0d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9156,
            "upload_time": "2024-09-06T09:43:47",
            "upload_time_iso_8601": "2024-09-06T09:43:47.853709Z",
            "url": "https://files.pythonhosted.org/packages/f8/97/6d914b37895dfe815cdc1ac4ddcc5de722acec068b31ca23cb8b7ea2f9fe/pymesomb-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7eaa9af2b1ca00e8539ece81430799bab00430a003a1953458e489c64b18c371",
                "md5": "8eb822d5581531e1b4362e9d8d840c17",
                "sha256": "2d15e0fd8e9910bd144d9f225e371f9f6fbfd7470ac4026ce82d35d35f95649e"
            },
            "downloads": -1,
            "filename": "pymesomb-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8eb822d5581531e1b4362e9d8d840c17",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8972,
            "upload_time": "2024-09-06T09:43:49",
            "upload_time_iso_8601": "2024-09-06T09:43:49.214609Z",
            "url": "https://files.pythonhosted.org/packages/7e/aa/9af2b1ca00e8539ece81430799bab00430a003a1953458e489c64b18c371/pymesomb-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-06 09:43:49",
    "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"
}
        
Elapsed time: 2.50123s