Skip to content

Python client library

To use this library:

  1. Run pip install keyring artifacts-keyring.
  2. Create a virtualenv.
  3. Add the following to your virtualenv's pip.conf:
    [global]
    extra-index-url=https://pkgs.dev.azure.com/enbw/EnPowerX/_packaging/enpxio/pypi/simple/
    
  4. Run pip install enpowerx-apis.

Sample code to list Offers:

import apis
from apis.enpowerx.market.v2 import OffersStub

channel = apis.get_default_channel(clientId, clientSecret, domain='dev.enpowerx.io')
service = OffersStub(channel)
result = await service.list(tenant='esw')
channel.close()