Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Python

The Python client uses HTTP/JSON. The distribution name is platform-sdk; import platform_sdk.

from platform_sdk import PlatformClient
c = PlatformClient(base_url="http://cloud-api.localhost")
print(c.list_instances())
print(c.list_instance_types())

base_url defaults to PLATFORM_REST or http://127.0.0.1:8080. token defaults to PLATFORM_TOKEN. app defaults to PLATFORM_APP, then app_default.

Terminal window
python3 -m venv .venv
source .venv/bin/activate
pip install -e ./sdk/python

Use a virtualenv so the package stays in the project. Run that from the repository root.