Python development SDK
Version 0.0.0.dev6 · 186,360 bytes
Download Python SDKSHA-256939eb09639605d5603a97c73701600c58494b9c55034d9e9b391078b4814ba1d
Runtime requirements
Python 3.10 or newer; preview built and tested on Python 3.12.14.
The wheel includes the native API client and DeveloperHumanClient; no third-party runtime dependencies.
An approved organization grant and issued client credentials for platform.capabilities:read.
Native API base URL https://www.pradiota.com/sandbox/v1. These packages preserve the configured API path. Use approved sandbox credentials.
Install locally
python -m pip install --no-deps https://www.pradiota.com/assets/developer-sdks/preview-20261007-sandbox-path/mighty_developers_staging-0.0.0.dev6-py3-none-any.whl
# Save the example as example.py:
python example.pyMake your first request
Create client credentials after your application is approved and its sandbox license is active. Set MIGHTY_CLIENT_ID and MIGHTY_CLIENT_SECRET in your server environment. The example exchanges them for a platform.capabilities:read token, then calls GET /v1/capabilities. Java and TypeScript use platformCapabilitiesGet; Python uses platform_capabilities_get. Save the example in the file named in the install instructions, then run it locally. Check the HTTP status, request ID and response body.
First request — approved application required
import os
from mighty_developers import Client
client = Client("https://www.pradiota.com/sandbox/v1")
auth = client.client_credentials(os.environ["MIGHTY_CLIENT_ID"],
os.environ["MIGHTY_CLIENT_SECRET"], "platform.capabilities:read")
if (auth.status != 200 or not isinstance(auth.body, dict)
or not isinstance(auth.body.get("access_token"), str)
or not auth.body["access_token"].strip()):
raise RuntimeError(f"Credential exchange failed: HTTP {auth.status}")
response = client.platform_capabilities_get(auth.body["access_token"])
print(response.status, response.request_id, response.body)