Python client library for the Quali Torque SaaS API.
- Auth (API token / OAuth PAT) support via environment variable
TORQUE_API_TOKEN
. - Async + sync clients built on
httpx
. - Environment (blueprint) listing, launch, status, stop.
- Activity / job tracking with polling helper.
- Typed models via Pydantic v2.
pip install pytorque
(For local dev)
pip install -e .[dev]
from pytorque import TorqueClient
client = TorqueClient(base_url="https://portal.qtorque.io", api_token="<TOKEN>")
or
client = TorqueClient() assuming requested environment variable properly set.
blueprints = client.get_spaces_by_space_name_catalog(space_name="NAMESPACE")
print(blueprints)
TORQUE_API_TOKEN
– default token if not passed explicitly.TORQUE_BASE_URL
– (optional) default base URL (e.g.https://portal.qtorque.io
).
Run tests:
pytest
Apache 2.0