Python client library¶
To use this library:
- Run
pip install keyring artifacts-keyring
. - Create a virtualenv.
- Add the following to your virtualenv's
pip.conf
:[global] extra-index-url=https://pkgs.dev.azure.com/enbw/EnPowerX/_packaging/enpxio/pypi/simple/
- 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()