workhold-admin 1.0.0__tar.gz
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.
- workhold_admin-1.0.0/PKG-INFO +10 -0
- workhold_admin-1.0.0/pyproject.toml +23 -0
- workhold_admin-1.0.0/pyproject.toml.orig +26 -0
- workhold_admin-1.0.0/src/workhold_admin/__init__.py +140 -0
- workhold_admin-1.0.0/src/workhold_admin/admin.py +573 -0
- workhold_admin-1.0.0/src/workhold_admin/async_client.py +1071 -0
- workhold_admin-1.0.0/src/workhold_admin/async_pagination.py +453 -0
- workhold_admin-1.0.0/src/workhold_admin/break_glass.py +291 -0
- workhold_admin-1.0.0/src/workhold_admin/models.py +1516 -0
- workhold_admin-1.0.0/src/workhold_admin/observer.py +250 -0
- workhold_admin-1.0.0/src/workhold_admin/pagination.py +478 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: workhold-admin
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Workhold admin/observer/break-glass client (public shell)
|
|
5
|
+
Author: Mikhail Konin
|
|
6
|
+
Author-email: Mikhail Konin <dev.konin@gmail.com>
|
|
7
|
+
Requires-Dist: workhold-client-core>=1.0.0,<1.1.0
|
|
8
|
+
Requires-Dist: workhold-client-core[async]>=1.0.0,<1.1.0 ; extra == 'async'
|
|
9
|
+
Requires-Python: >=3.13
|
|
10
|
+
Provides-Extra: async
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "workhold-admin"
|
|
3
|
+
version = "1.0.0"
|
|
4
|
+
description = "Workhold admin/observer/break-glass client (public shell)"
|
|
5
|
+
requires-python = ">=3.13"
|
|
6
|
+
dependencies = ["workhold-client-core>=1.0.0,<1.1.0"]
|
|
7
|
+
|
|
8
|
+
[[project.authors]]
|
|
9
|
+
name = "Mikhail Konin"
|
|
10
|
+
email = "dev.konin@gmail.com"
|
|
11
|
+
|
|
12
|
+
[project.optional-dependencies]
|
|
13
|
+
async = ["workhold-client-core[async]>=1.0.0,<1.1.0"]
|
|
14
|
+
|
|
15
|
+
[build-system]
|
|
16
|
+
requires = ["uv_build>=0.11.30,<0.12.0"]
|
|
17
|
+
build-backend = "uv_build"
|
|
18
|
+
|
|
19
|
+
[tool.uv.build-backend]
|
|
20
|
+
module-name = "workhold_admin"
|
|
21
|
+
|
|
22
|
+
[tool.uv.sources.workhold-client-core]
|
|
23
|
+
workspace = true
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "workhold-admin"
|
|
3
|
+
version = "1.0.0"
|
|
4
|
+
description = "Workhold admin/observer/break-glass client (public shell)"
|
|
5
|
+
authors = [
|
|
6
|
+
{ name = "Mikhail Konin", email = "dev.konin@gmail.com" }
|
|
7
|
+
]
|
|
8
|
+
requires-python = ">=3.13"
|
|
9
|
+
dependencies = [
|
|
10
|
+
"workhold-client-core>=1.0.0,<1.1.0",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
[project.optional-dependencies]
|
|
14
|
+
async = [
|
|
15
|
+
"workhold-client-core[async]>=1.0.0,<1.1.0",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[build-system]
|
|
19
|
+
requires = ["uv_build>=0.11.30,<0.12.0"]
|
|
20
|
+
build-backend = "uv_build"
|
|
21
|
+
|
|
22
|
+
[tool.uv.build-backend]
|
|
23
|
+
module-name = "workhold_admin"
|
|
24
|
+
|
|
25
|
+
[tool.uv.sources]
|
|
26
|
+
workhold-client-core = { workspace = true }
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"""Public admin/observer/break-glass client distribution.
|
|
2
|
+
|
|
3
|
+
Thin role surfaces over shared ``_workhold_client_core`` primitives.
|
|
4
|
+
Observer operations: getCapabilities, getTask, listTaskAttempts, getQueue,
|
|
5
|
+
getStats, getMaintenanceStatus, listInspectionTasks, listInspectionAttempts,
|
|
6
|
+
listDeadLetters (see ``packages/client-operation-ownership.json``).
|
|
7
|
+
Admin audit/maintenance: listAdminAudit, getMaintenanceStatus, runMaintenance.
|
|
8
|
+
Admin recovery: replayDeadLetter, preview/execute bulk replay/cancel.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
from _workhold_client_core.capabilities import Capabilities
|
|
14
|
+
from _workhold_client_core.errors import (
|
|
15
|
+
AuthenticationError,
|
|
16
|
+
MalformedResponseError,
|
|
17
|
+
ProtocolError,
|
|
18
|
+
QueueClientError,
|
|
19
|
+
TimeoutError,
|
|
20
|
+
TransportError,
|
|
21
|
+
)
|
|
22
|
+
from _workhold_client_core.models import Task, TaskState
|
|
23
|
+
from _workhold_client_core.transport import HttpJsonTransport, encode_path_segment
|
|
24
|
+
from workhold_admin.admin import AdminClient
|
|
25
|
+
from workhold_admin.break_glass import BreakGlassClient
|
|
26
|
+
from workhold_admin.models import (
|
|
27
|
+
AdminMutationResult,
|
|
28
|
+
AuditOperation,
|
|
29
|
+
AuditPage,
|
|
30
|
+
AuditRecord,
|
|
31
|
+
Attempt,
|
|
32
|
+
AttemptOutcome,
|
|
33
|
+
AttemptPage,
|
|
34
|
+
BackoffStrategy,
|
|
35
|
+
BULK_BATCH_MAX,
|
|
36
|
+
BULK_CANDIDATE_MAX,
|
|
37
|
+
BreakGlassCounterResult,
|
|
38
|
+
BreakGlassMutationResult,
|
|
39
|
+
BreakGlassReplayLimitResult,
|
|
40
|
+
BulkExecuteResult,
|
|
41
|
+
BulkItemOutcome,
|
|
42
|
+
BulkItemOutcomeKind,
|
|
43
|
+
BulkOperation,
|
|
44
|
+
BulkPreviewResult,
|
|
45
|
+
CONFIRMATION_TOKEN_MAX_LENGTH,
|
|
46
|
+
ConfigVersion,
|
|
47
|
+
CURSOR_MAX_LENGTH,
|
|
48
|
+
DeadLetterPage,
|
|
49
|
+
DeadLetterReplayResult,
|
|
50
|
+
IDEMPOTENCY_KEY_MAX_LENGTH,
|
|
51
|
+
IDEMPOTENCY_KEY_MIN_LENGTH,
|
|
52
|
+
MaintenanceOutcome,
|
|
53
|
+
MaintenanceRunResult,
|
|
54
|
+
MaintenanceStatus,
|
|
55
|
+
PAGE_LIMIT_DEFAULT,
|
|
56
|
+
PAGE_LIMIT_MAX,
|
|
57
|
+
PAGE_LIMIT_MIN,
|
|
58
|
+
PolicyVersion,
|
|
59
|
+
Queue,
|
|
60
|
+
QueuePage,
|
|
61
|
+
QueueState,
|
|
62
|
+
REASON_MAX_LENGTH,
|
|
63
|
+
RetryPolicy,
|
|
64
|
+
RetryPolicyDraft,
|
|
65
|
+
StatsAvailability,
|
|
66
|
+
StatsFreshness,
|
|
67
|
+
StatsMaintenanceSummary,
|
|
68
|
+
StatsQueueAggregate,
|
|
69
|
+
StatsSnapshot,
|
|
70
|
+
StatsTelemetrySource,
|
|
71
|
+
StatsTelemetrySummary,
|
|
72
|
+
TaskPage,
|
|
73
|
+
)
|
|
74
|
+
from workhold_admin.observer import ObserverClient
|
|
75
|
+
|
|
76
|
+
__version__ = "1.0.0"
|
|
77
|
+
|
|
78
|
+
__all__ = [
|
|
79
|
+
"AdminClient",
|
|
80
|
+
"AdminMutationResult",
|
|
81
|
+
"AuditOperation",
|
|
82
|
+
"AuditPage",
|
|
83
|
+
"AuditRecord",
|
|
84
|
+
"Attempt",
|
|
85
|
+
"AttemptOutcome",
|
|
86
|
+
"AttemptPage",
|
|
87
|
+
"AuthenticationError",
|
|
88
|
+
"BackoffStrategy",
|
|
89
|
+
"BULK_BATCH_MAX",
|
|
90
|
+
"BULK_CANDIDATE_MAX",
|
|
91
|
+
"BreakGlassClient",
|
|
92
|
+
"BreakGlassCounterResult",
|
|
93
|
+
"BreakGlassMutationResult",
|
|
94
|
+
"BreakGlassReplayLimitResult",
|
|
95
|
+
"BulkExecuteResult",
|
|
96
|
+
"BulkItemOutcome",
|
|
97
|
+
"BulkItemOutcomeKind",
|
|
98
|
+
"BulkOperation",
|
|
99
|
+
"BulkPreviewResult",
|
|
100
|
+
"Capabilities",
|
|
101
|
+
"CONFIRMATION_TOKEN_MAX_LENGTH",
|
|
102
|
+
"ConfigVersion",
|
|
103
|
+
"CURSOR_MAX_LENGTH",
|
|
104
|
+
"DeadLetterPage",
|
|
105
|
+
"DeadLetterReplayResult",
|
|
106
|
+
"HttpJsonTransport",
|
|
107
|
+
"IDEMPOTENCY_KEY_MAX_LENGTH",
|
|
108
|
+
"IDEMPOTENCY_KEY_MIN_LENGTH",
|
|
109
|
+
"MaintenanceOutcome",
|
|
110
|
+
"MaintenanceRunResult",
|
|
111
|
+
"MaintenanceStatus",
|
|
112
|
+
"MalformedResponseError",
|
|
113
|
+
"ObserverClient",
|
|
114
|
+
"PAGE_LIMIT_DEFAULT",
|
|
115
|
+
"PAGE_LIMIT_MAX",
|
|
116
|
+
"PAGE_LIMIT_MIN",
|
|
117
|
+
"PolicyVersion",
|
|
118
|
+
"ProtocolError",
|
|
119
|
+
"Queue",
|
|
120
|
+
"QueueClientError",
|
|
121
|
+
"QueuePage",
|
|
122
|
+
"QueueState",
|
|
123
|
+
"REASON_MAX_LENGTH",
|
|
124
|
+
"RetryPolicy",
|
|
125
|
+
"RetryPolicyDraft",
|
|
126
|
+
"StatsAvailability",
|
|
127
|
+
"StatsFreshness",
|
|
128
|
+
"StatsMaintenanceSummary",
|
|
129
|
+
"StatsQueueAggregate",
|
|
130
|
+
"StatsSnapshot",
|
|
131
|
+
"StatsTelemetrySource",
|
|
132
|
+
"StatsTelemetrySummary",
|
|
133
|
+
"Task",
|
|
134
|
+
"TaskPage",
|
|
135
|
+
"TaskState",
|
|
136
|
+
"TimeoutError",
|
|
137
|
+
"TransportError",
|
|
138
|
+
"encode_path_segment",
|
|
139
|
+
"__version__",
|
|
140
|
+
]
|