This folder contains the Python SDK for accessing the Heimdall Power External API.
- Python 3.11+
- Poetry
Install dependencies:
curl -sSL https://install.python-poetry.org | python3 -
poetry installThe package can be downloaded and installed unsing the github relase artifacts
pip install https://github.com/heimdallpower/api-sdk/releases/download/v1.2.3/heimdall_api_sdk-1.2.3-py3-none-any.whlReplace the version and filename with the latest from Releases
from heimdall_api_client.client import HeimdallApiClient
import logging
import pprint
logging.basicConfig(level=logging.INFO)
client = HeimdallApiClient(
client_id="your_client_id",
client_secret="your_client_secret",
)
assets = client.get_assets()
pprint.pprint(assets)more examples can be seen in the examples folder.