Skip to main content

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

  1. Update tests and readme examples with more response data once the chenosis sandbox/production is up and running (11 Feb 2023).
  2. Use pydantic for response models.
  3. Add more endpoints once POC is acceptable.
  4. Add more client methods.
  5. Add an async client.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chenosis-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

chenosis-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for chenosis-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f25831226e33555be48fa3853dd9227192f49e6ddabc3307f0729ec9b4dee8e7
MD5 48b857414cf5c3decedf97827f24d739
BLAKE2b-256 8e310f80c3b3cd10b5a3cddf529e86ab0901a1d8645e8132519219685b76b915

See more details on using hashes here.

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

Hashes for chenosis-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8966f6889dfa5dd7821429646da3fb0b8d05393a47ab0e1821091e5bce53f6cb
MD5 2b4b5f3c0ffb22b0a1072744c42b0fc5
BLAKE2b-256 d4b36565aaf14a59837ef027da64c087ad033583e66ef07ce2ee6edb2b4e5f4d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page