semaphoreui-client 0.1.14__tar.gz → 0.1.15__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.
- {semaphoreui_client-0.1.14 → semaphoreui_client-0.1.15}/PKG-INFO +1 -1
- semaphoreui_client-0.1.15/semaphoreui_client/__about__.py +1 -0
- {semaphoreui_client-0.1.14 → semaphoreui_client-0.1.15}/semaphoreui_client/client.py +3 -16
- semaphoreui_client-0.1.14/semaphoreui_client/__about__.py +0 -1
- {semaphoreui_client-0.1.14 → semaphoreui_client-0.1.15}/.github/workflows/checks.yml +0 -0
- {semaphoreui_client-0.1.14 → semaphoreui_client-0.1.15}/.github/workflows/pre-release.yml +0 -0
- {semaphoreui_client-0.1.14 → semaphoreui_client-0.1.15}/.github/workflows/release.yml +0 -0
- {semaphoreui_client-0.1.14 → semaphoreui_client-0.1.15}/.gitignore +0 -0
- {semaphoreui_client-0.1.14 → semaphoreui_client-0.1.15}/README.md +0 -0
- {semaphoreui_client-0.1.14 → semaphoreui_client-0.1.15}/pyproject.toml +0 -0
- {semaphoreui_client-0.1.14 → semaphoreui_client-0.1.15}/semaphoreui_client/__init__.py +0 -0
@@ -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 @@
|
|
1
|
+
__version__ = "0.1.15"
|
@@ -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 +0,0 @@
|
|
1
|
-
__version__ = "0.1.14"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|