Pure-Python client for the sqi distributed task and render farm manager
Project description
sqi-sdk
Pure-Python client for sqi — a distributed
task and render farm manager.
sqi-sdk (import name sqi_client) is a pure-Python library for programmatic
job submission, status queries, and management. It covers the same operations as
the web UI via the REST API, and is the foundation for the Phase 2 DCC
submitters and for pipeline automation scripts (see ../../ROADMAP.md).
It talks to a running sqi-server over its REST API, with an optional WebSocket
extra for live event streaming. The only required dependency is
httpx; everything else is an opt-in extra, so
the library stays light enough to embed in DCC Python environments (Maya,
Houdini, Nuke).
Requirements
- Python 3.9 or newer (VFX Reference Platform CY2022+; covers Maya 2023+, Houdini 19.5+, Nuke 14+).
- A reachable
sqi-serverinstance.
Installation
pip install sqi-sdk # core (httpx only)
pip install 'sqi-sdk[yaml]' # + PyYAML (for your own YAML handling; not needed to submit)
pip install 'sqi-sdk[ws]' # + websockets for live event streaming
Until the package is published to PyPI, install the wheel attached to a GitHub release:
pip install https://github.com/uberware/sqi/releases/download/vX.Y.Z/sqi_sdk-X.Y.Z-py3-none-any.whl
# with an extra:
pip install "sqi-sdk[ws] @ https://github.com/uberware/sqi/releases/download/vX.Y.Z/sqi_sdk-X.Y.Z-py3-none-any.whl"
The package ships a py.typed marker, so type checkers see its annotations.
Quickstart
from pathlib import Path
from sqi_client import SqiClient
with SqiClient("http://localhost:8080") as sqi:
# Submit an OpenJD template (a Path is read from disk; a str is sent verbatim;
# a dict is serialized to JSON) and block until the job finishes.
job = sqi.submit_and_wait(
Path("render.yaml"), farm_id="<farm-id>", queue_id="<queue-id>", timeout=600
)
print("job", job.id, "->", job.status)
# Print each task's captured log output.
for task in sqi.iter_job_tasks(job.id):
page = sqi.get_task_logs(task.id)
print("".join(chunk.data for chunk in page.items), end="")
What you can do
- Submit raw OpenJD job templates (
submit_job,submit_and_wait). - Query jobs, tasks, workers, and logs with typed models and automatic
pagination (
list_*returns aPage;iter_*walks every page lazily). - Manage jobs (pause, resume, set priority, cancel, retry) and tasks (cancel, retry) and workers (enable, disable).
- CRUD farms, queues, storage locations, and usage pools.
- Tail logs by polling (
tail_task_logs) or live over WebSocket with thewsextra (tail_task_logs_live).
Errors map to a typed hierarchy rooted at SqiError (e.g. NotFoundError,
ValidationError, ConflictError, SqiTimeoutError). The transport retries
idempotent GETs with backoff and exposes a per-request header hook for future
authentication.
Documentation
Full reference — construction and configuration, every public method with
examples, error handling, pagination, log tailing, and the conveniences — is in
docs/python-client.md.
Runnable examples live in examples/.
License
AGPL-3.0-or-later. See the repository root for the full license text.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqi_sdk-0.1.0.tar.gz.
File metadata
- Download URL: sqi_sdk-0.1.0.tar.gz
- Upload date:
- Size: 80.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d49aa22047ffca3a8be32aa5f66ea1795d5f55a99ff100e5eab37caabd41a5f2
|
|
| MD5 |
1713ea8d37c04e3959abaaf153a01142
|
|
| BLAKE2b-256 |
6b8667bda09e20fe3098f6da74af85abfc238c05ad710d93bcb0fbb8353c09e5
|
Provenance
The following attestation bundles were made for sqi_sdk-0.1.0.tar.gz:
Publisher:
release.yml on uberware/sqi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqi_sdk-0.1.0.tar.gz -
Subject digest:
d49aa22047ffca3a8be32aa5f66ea1795d5f55a99ff100e5eab37caabd41a5f2 - Sigstore transparency entry: 1960866537
- Sigstore integration time:
-
Permalink:
uberware/sqi@ae370c5165eb70358e20d3b0be5f761de3a6ccba -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/uberware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ae370c5165eb70358e20d3b0be5f761de3a6ccba -
Trigger Event:
push
-
Statement type:
File details
Details for the file sqi_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sqi_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 48.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f026c290510f5f5d8bbd03f95b7a944f429ce5cf2fe38378cc704d6317c13b0d
|
|
| MD5 |
b7bd3e1f31c8eafc3f71f1c8d9e608f7
|
|
| BLAKE2b-256 |
8c5d0ee7d38ffd48058fb3ccdc07543f638b9f97eff1f2eba84a595109decc21
|
Provenance
The following attestation bundles were made for sqi_sdk-0.1.0-py3-none-any.whl:
Publisher:
release.yml on uberware/sqi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqi_sdk-0.1.0-py3-none-any.whl -
Subject digest:
f026c290510f5f5d8bbd03f95b7a944f429ce5cf2fe38378cc704d6317c13b0d - Sigstore transparency entry: 1960866731
- Sigstore integration time:
-
Permalink:
uberware/sqi@ae370c5165eb70358e20d3b0be5f761de3a6ccba -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/uberware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ae370c5165eb70358e20d3b0be5f761de3a6ccba -
Trigger Event:
push
-
Statement type: