MTN Chenosis API
NB: Not affiliated with MTN's official Chenosis Platform (05 Jan 2023)
A python client for MTN's Chenosis platform: https://chenosis.io.
Installation
pip install chenosis
Usage
from chenosis.client import ChenosisClient
chenosis_client = ChenosisClient(
host="https://sandbox.api.chenosis.io", # Use live API when going to production
client_id="xxxxxx",
client_secret="yyyyyy"
)
# GET user's get_mobile_carrier_details
phone_number = "27123456789"
response = chenosis_client.get_mobile_carrier_details(phone_number=phone_number)
print(response)
# TODO: Put correct information
Reporting Issues:
You can open issues on the GitHub repository for library-level issues and contact Chenosis support for any issues with the API itself.
TODO List
- Update tests and readme examples with more response data once the chenosis sandbox/production is up and running (11 Feb 2023).
- Use pydantic for response models.
- Add more endpoints once POC is acceptable.
- Add more client methods.
- Add an async client.
Release files for chenosis 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chenosis-0.1.0.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chenosis-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:8.5 kB
Release files / chenosis-0.1.0.tar.gz
| Download URL | chenosis-0.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f25831226e33555be48fa3853dd9227192f49e6ddabc3307f0729ec9b4dee8e7
|
|
BLAKE2b-256 checksum How to use checksums |
8e310f80c3b3cd10b5a3cddf529e86ab0901a1d8645e8132519219685b76b915
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.15
|
Release files / chenosis-0.1.0-py3-none-any.whl
| Download URL | chenosis-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8966f6889dfa5dd7821429646da3fb0b8d05393a47ab0e1821091e5bce53f6cb
|
|
BLAKE2b-256 checksum How to use checksums |
d4b36565aaf14a59837ef027da64c087ad033583e66ef07ce2ee6edb2b4e5f4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.15
|