sqi-sdk 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
sqi_client/__init__.py ADDED
@@ -0,0 +1,106 @@
1
+ # SPDX-FileCopyrightText: 2026 Uberware Inc. <https://uberware.net>
2
+ # SPDX-License-Identifier: AGPL-3.0-or-later
3
+ """sqi-sdk — a pure-Python client for the sqi distributed task farm manager.
4
+
5
+ This package wraps the sqi-server REST and WebSocket API for scripted job
6
+ submission, querying, and management. It is the foundation for the Phase 2 DCC
7
+ submitters and for pipeline automation scripts (see the project ``ROADMAP.md``).
8
+
9
+ The curated public API is re-exported here and listed in ``__all__``: the
10
+ client, its typed models, the exception hierarchy, and — when importable — the
11
+ optional WebSocket event stream. Everything else is underscore-private and not
12
+ part of the supported interface.
13
+ """
14
+
15
+ from __future__ import annotations
16
+
17
+ from ._version import __version__
18
+ from .client import JobTemplate, SqiClient
19
+ from .errors import (
20
+ APIError,
21
+ BadRequestError,
22
+ ConflictError,
23
+ NotFoundError,
24
+ RateLimitError,
25
+ ServerError,
26
+ SqiConnectionError,
27
+ SqiError,
28
+ SqiTimeoutError,
29
+ ValidationError,
30
+ )
31
+ from .models import (
32
+ CancelResult,
33
+ CurrentTask,
34
+ Farm,
35
+ GPUInfo,
36
+ Job,
37
+ JobStatus,
38
+ LogChunk,
39
+ LogPage,
40
+ Page,
41
+ Queue,
42
+ RetryJobResult,
43
+ RetryResult,
44
+ ServerVersion,
45
+ Step,
46
+ StorageLocation,
47
+ Task,
48
+ TaskCounts,
49
+ TaskStatus,
50
+ UsagePool,
51
+ Worker,
52
+ WorkerAction,
53
+ WorkerStatus,
54
+ iter_pages,
55
+ parse_page,
56
+ )
57
+
58
+ __all__ = [
59
+ "APIError",
60
+ "BadRequestError",
61
+ "CancelResult",
62
+ "ConflictError",
63
+ "CurrentTask",
64
+ "Farm",
65
+ "GPUInfo",
66
+ "Job",
67
+ "JobStatus",
68
+ "JobTemplate",
69
+ "LogChunk",
70
+ "LogPage",
71
+ "NotFoundError",
72
+ "Page",
73
+ "Queue",
74
+ "RateLimitError",
75
+ "RetryJobResult",
76
+ "RetryResult",
77
+ "ServerError",
78
+ "ServerVersion",
79
+ "SqiClient",
80
+ "SqiConnectionError",
81
+ "SqiError",
82
+ "SqiTimeoutError",
83
+ "Step",
84
+ "StorageLocation",
85
+ "Task",
86
+ "TaskCounts",
87
+ "TaskStatus",
88
+ "UsagePool",
89
+ "ValidationError",
90
+ "Worker",
91
+ "WorkerAction",
92
+ "WorkerStatus",
93
+ "__version__",
94
+ "iter_pages",
95
+ "parse_page",
96
+ ]
97
+
98
+ # The optional WebSocket surface lives in ``events`` (importable without the
99
+ # ``ws`` extra — ``websockets`` is loaded lazily on connect). Guarded so a
100
+ # missing or broken events module never breaks importing the core package.
101
+ try:
102
+ from .events import Event, SqiEventStream
103
+ except ImportError: # pragma: no cover - events imports cleanly in supported setups
104
+ pass
105
+ else:
106
+ __all__ += ["Event", "SqiEventStream"]
sqi_client/_version.py ADDED
@@ -0,0 +1,12 @@
1
+ # SPDX-FileCopyrightText: 2026 Uberware Inc. <https://uberware.net>
2
+ # SPDX-License-Identifier: AGPL-3.0-or-later
3
+ """Single source of truth for the package version.
4
+
5
+ Both the wheel metadata (via hatchling's version hook, see ``pyproject.toml``)
6
+ and the runtime ``sqi_client.__version__`` read this value, so they can never
7
+ diverge.
8
+ """
9
+
10
+ from __future__ import annotations
11
+
12
+ __version__ = "0.1.0"