Skip to main content

orchestrator-client

Python client for the DAMIT AIOps Orchestrator REST API and Socket.IO realtime events.

Install

pip install orchestrator-client

Requires Python >= 3.12.

Quick Start

from orchestrator_client import Orchestrator

client = Orchestrator(base_url="http://localhost:8080")

# Create a task
task = client.create_task(
    workflow_id="proactive",
    goal_prompt="Analyze system logs for errors",
    max_iterations=50,
)
print(f"Created: {task.task_id}")

# Poll status
status = client.get_task_status(task.task_id)
print(f"Status: {status.status}, iteration {status.iteration}/{status.max_iterations}")

# List tasks
tasks = client.list_tasks(workflow_id="proactive", limit=10)
for t in tasks.tasks:
    print(f"  {t.id}: {t.status}")

# Cancel
client.cancel_task(task.task_id)

client.close()

Environment Variables

Variable Default Description
ORCHESTRATOR_URL http://localhost:8080 Base URL (supports subpath)
ORCHESTRATOR_API_KEY — Optional bearer token
ORCHESTRATOR_TIMEOUT 30.0 HTTP timeout (seconds)
ORCHESTRATOR_MAX_RETRIES 3 Max retry attempts

SSL / Self-Signed Certificates

For orchestrator instances behind HTTPS with self-signed certificates, pass verify_ssl=False:

from orchestrator_client import Orchestrator

client = Orchestrator(
    base_url="https://orchestrator.internal:8443",
    verify_ssl=False,
)

Or inject a pre-configured httpx.AsyncClient for full control:

import httpx
from orchestrator_client import OrchestratorAsync

custom = httpx.AsyncClient(verify=False, timeout=httpx.Timeout(60.0))
client = OrchestratorAsync(http_client=custom)

## Async Variant

For use inside async code (e.g. FastAPI, asyncio scripts):

```python
from orchestrator_client import OrchestratorAsync

async with OrchestratorAsync() as client:
    status = await client.get_task_status("task-abc123")

Exceptions

All inherit from OrchestratorError and carry status_code and error_code:

Exception Meaning
OrchestratorConnectionError Network / DNS / timeout
OrchestratorAuthError 401/403
OrchestratorNotFoundError 404
OrchestratorAPIError 400/500 with error code
OrchestratorConfigError Bad env vars / missing config

Documentation

Detailed docs with full method listings and examples:

Testing

pip install -e ".[dev]"
pytest

License

Apache 2.0

Metadata

Release files for orchestrator-client 5.11.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orchestrator-client 5.11.7
File Size Uploaded
orchestrator_client-5.11.7.tar.gz 61.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for orchestrator-client 5.11.7
File Interpreter ABI Platform
orchestrator_client-5.11.7-py3-none-any.whl Python 3 none any Details

Total release size: 113.8 kB

Release files / orchestrator_client-5.11.7.tar.gz

Download URL orchestrator_client-5.11.7.tar.gz
Size 61.1 kB
Tags Source
SHA-256 checksum
How to use checksums
59a173e4a95f689436bf61bebdc826155f93a41c5409730bd11e5fc9aee3a4ba
BLAKE2b-256 checksum
How to use checksums
84ca102d5df2464d47b41b6c2211d41bb9203e75a3691cd93ec8e527af405299
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.

Transparency log

Release files / orchestrator_client-5.11.7-py3-none-any.whl

Download URL orchestrator_client-5.11.7-py3-none-any.whl
Size 52.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc55847b32527e696d64a4240c7ba2a66c3131c9a4687aac352999e74a8ee8e6
BLAKE2b-256 checksum
How to use checksums
155d6152a3b65ff3554f83910af5ba2baba131676166f30fc417cc0cf71d2f06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.

Transparency log

Release history Release notifications | RSS feed

6.0.0

2 release files

5.15.0

2 release files

5.14.3

2 release files

5.14.0

2 release files

5.13.2

2 release files

5.13.0

2 release files

This release

5.11.7 This release

2 release files

5.11.0

2 release files

5.9.2

2 release files

5.9.0

2 release files

5.8.3

2 release files

5.8.0

2 release files

5.7.12

2 release files

5.7.11

2 release files

5.7.10

2 release files

5.7.4

2 release files

5.7.3

2 release files

5.7.2

2 release files

5.7.1

2 release files

5.7.0

2 release files

5.6.0

2 release files

5.5.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page