A python client for MTN's Chenosis platform: https://chenosis.io.
Project description
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.
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
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 chenosis-0.1.0.tar.gz.
File metadata
- Download URL: chenosis-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f25831226e33555be48fa3853dd9227192f49e6ddabc3307f0729ec9b4dee8e7
|
|
| MD5 |
48b857414cf5c3decedf97827f24d739
|
|
| BLAKE2b-256 |
8e310f80c3b3cd10b5a3cddf529e86ab0901a1d8645e8132519219685b76b915
|
File details
Details for the file chenosis-0.1.0-py3-none-any.whl.
File metadata
- Download URL: chenosis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8966f6889dfa5dd7821429646da3fb0b8d05393a47ab0e1821091e5bce53f6cb
|
|
| MD5 |
2b4b5f3c0ffb22b0a1072744c42b0fc5
|
|
| BLAKE2b-256 |
d4b36565aaf14a59837ef027da64c087ad033583e66ef07ce2ee6edb2b4e5f4d
|