semaphoreui-client 0.1.14__py3-none-any.whl → 0.1.15__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.
- semaphoreui_client/__about__.py +1 -1
- semaphoreui_client/client.py +3 -16
- {semaphoreui_client-0.1.14.dist-info → semaphoreui_client-0.1.15.dist-info}/METADATA +1 -1
- semaphoreui_client-0.1.15.dist-info/RECORD +6 -0
- semaphoreui_client-0.1.14.dist-info/RECORD +0 -6
- {semaphoreui_client-0.1.14.dist-info → semaphoreui_client-0.1.15.dist-info}/WHEEL +0 -0
semaphoreui_client/__about__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.1.
|
1
|
+
__version__ = "0.1.15"
|
semaphoreui_client/client.py
CHANGED
@@ -534,14 +534,12 @@ class SemaphoreUIClient:
|
|
534
534
|
)
|
535
535
|
assert response.status_code == 204
|
536
536
|
|
537
|
-
def get_project_task_output(
|
538
|
-
self, project_id: int, id: int
|
539
|
-
) -> typing.List["TaskOutput"]:
|
537
|
+
def get_project_task_output(self, project_id: int, id: int) -> str:
|
540
538
|
response = self.http.get(
|
541
539
|
f"{self.api_endpoint}/project/{project_id}/tasks/{id}/output"
|
542
540
|
)
|
543
541
|
assert response.status_code == 200
|
544
|
-
return
|
542
|
+
return "\n".join(data["output"] for data in response.json())
|
545
543
|
|
546
544
|
|
547
545
|
@dataclass
|
@@ -982,16 +980,5 @@ class Task:
|
|
982
980
|
def delete(self) -> None:
|
983
981
|
self.client.delete_project_task(self.project_id, self.id)
|
984
982
|
|
985
|
-
def output(self) ->
|
983
|
+
def output(self) -> str:
|
986
984
|
return self.client.get_project_task_output(self.project_id, self.id)
|
987
|
-
|
988
|
-
def normalized_output(self) -> typing.List[str]:
|
989
|
-
return [output.output for output in self.output()]
|
990
|
-
|
991
|
-
|
992
|
-
@dataclass
|
993
|
-
class TaskOutput:
|
994
|
-
task_id: int
|
995
|
-
task: str
|
996
|
-
time: str
|
997
|
-
output: str
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: semaphoreui-client
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.15
|
4
4
|
Summary: An api client for interacting with Semaphore UI
|
5
5
|
Project-URL: Documentation, https://github.com/rockstar/semaphoreui-client#readme
|
6
6
|
Project-URL: Issues, https://github.com/rockstar/semaphoreui-client/issues
|
@@ -0,0 +1,6 @@
|
|
1
|
+
semaphoreui_client/__about__.py,sha256=qb0TalpSt1CbprnFyeLUKqgrqNtmnk9IoQQ7umAoXVY,23
|
2
|
+
semaphoreui_client/__init__.py,sha256=VpeJavEFhs5gyfih7CoRTR4K4IGXGY3UYUkgAWj_f2U,56
|
3
|
+
semaphoreui_client/client.py,sha256=jqIi0klcWz8OPcNIMxSdNeYDdeSxEyP17hFeNFde8BA,30515
|
4
|
+
semaphoreui_client-0.1.15.dist-info/METADATA,sha256=Lm4YCA3i2XjkIS1ObTysWYkpPlmvPw-4zY67_LKdghQ,1633
|
5
|
+
semaphoreui_client-0.1.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
6
|
+
semaphoreui_client-0.1.15.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
semaphoreui_client/__about__.py,sha256=PIBqEOI-nqKFL9oJAWQQwlHuujG9Cd7EmdxDrThNQto,23
|
2
|
-
semaphoreui_client/__init__.py,sha256=VpeJavEFhs5gyfih7CoRTR4K4IGXGY3UYUkgAWj_f2U,56
|
3
|
-
semaphoreui_client/client.py,sha256=mDCbPQz9c3WCoESPkqzKxYw7Mvpn408bT-6rMX14XTg,30773
|
4
|
-
semaphoreui_client-0.1.14.dist-info/METADATA,sha256=700r3AW3rle0NfqA3OLPpd4u1kUbDwIMwxF24AM91QE,1633
|
5
|
-
semaphoreui_client-0.1.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
6
|
-
semaphoreui_client-0.1.14.dist-info/RECORD,,
|
File without changes
|