Repo: https://github.com/SphereMall/Python-MS-SDK


Install
pip install Python-MS-SDK==0.8.7

Documentation

SphereMall Gateway Python SDK

Official Python SDK for integrating with SphereMall Product. Official documentation

Version 0.8.6

Changelog 0.8.6

Supported microservices

  • Gateway 1.1.1
  • Products 1.1.0
  • Users 1.0.0
  • Grapher 1.0.0

Installation

Step 1 (Not necessary). Create virtual environment:

python3 -m venv myvenv
myvenv\Scripts\activate

Step 2: Install Python-MS-SDK

pip3 install Python-MS-SDK

For update to new version

pip3 install --upgrade Python-MS-SDK

Step: 3: Import the package

from ms_sdk import Client

Instantiating the SDK Client:

Pass in the configuration to the client:

client = Client({
            'gatewayUrl': 'API_GATEWAY_URL',
            'clientId': 'API_CLIENT_ID',
            'secretKey': 'API_SECRET_KEY'
        })

Using the client with base Resources functionality