NB: Not affiliated with MTN's official Chenosis Platform (05 Jan 2023)
A python client for MTN's Chenosis platform: https://chenosis.io.
pip install chenosis
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
You can open issues on the GitHub repository for library-level issues and contact Chenosis support for any issues with the API itself.
- 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.