semaphoreui-client 0.2.0__py3-none-any.whl → 0.2.1__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 +17 -0
- {semaphoreui_client-0.2.0.dist-info → semaphoreui_client-0.2.1.dist-info}/METADATA +1 -1
- semaphoreui_client-0.2.1.dist-info/RECORD +6 -0
- semaphoreui_client-0.2.0.dist-info/RECORD +0 -6
- {semaphoreui_client-0.2.0.dist-info → semaphoreui_client-0.2.1.dist-info}/WHEEL +0 -0
semaphoreui_client/__about__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.2.
|
1
|
+
__version__ = "0.2.1"
|
semaphoreui_client/client.py
CHANGED
@@ -749,6 +749,23 @@ class Template:
|
|
749
749
|
response = self.client.http.delete(self.url)
|
750
750
|
assert response.status_code == 204
|
751
751
|
|
752
|
+
def last_tasks(self, limit: typing.Optional[int] = None) -> typing.List["Task"]:
|
753
|
+
"""Get the last tasks.
|
754
|
+
|
755
|
+
This function is _technically_ undocumented in the SemaphoreUI
|
756
|
+
swagger doc. It was sleuthed out in the UI, so it may be
|
757
|
+
an unstable function.
|
758
|
+
"""
|
759
|
+
params = {}
|
760
|
+
if limit is not None:
|
761
|
+
params["limit"] = limit
|
762
|
+
response = self.client.http.get(
|
763
|
+
f"{self.url}/project/{self.project_id}/templates/{self.id}/tasks/last",
|
764
|
+
params=params,
|
765
|
+
)
|
766
|
+
assert response.status_code == 200
|
767
|
+
return [Task(**task, client=self.client) for task in response.json()]
|
768
|
+
|
752
769
|
|
753
770
|
@dataclass
|
754
771
|
class Schedule:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: semaphoreui-client
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.1
|
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=HfjVOrpTnmZ-xVFCYSVmX50EXaBQeJteUHG-PD6iQs8,22
|
2
|
+
semaphoreui_client/__init__.py,sha256=VpeJavEFhs5gyfih7CoRTR4K4IGXGY3UYUkgAWj_f2U,56
|
3
|
+
semaphoreui_client/client.py,sha256=CadFj7T5mUdnbu95dbBEIvZbSnjcb0sLCyyacZBpJBY,26387
|
4
|
+
semaphoreui_client-0.2.1.dist-info/METADATA,sha256=KDsZhPwleFstyPHgkrpvX0NOw6o3Vlei-4-Hlsyg-zo,1632
|
5
|
+
semaphoreui_client-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
6
|
+
semaphoreui_client-0.2.1.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
semaphoreui_client/__about__.py,sha256=Zn1KFblwuFHiDRdRAiRnDBRkbPttWh44jKa5zG2ov0E,22
|
2
|
-
semaphoreui_client/__init__.py,sha256=VpeJavEFhs5gyfih7CoRTR4K4IGXGY3UYUkgAWj_f2U,56
|
3
|
-
semaphoreui_client/client.py,sha256=OEgJhaK8H1WcP61TJjpenWnr4HU_hkI6lVI7oVQYSzk,25722
|
4
|
-
semaphoreui_client-0.2.0.dist-info/METADATA,sha256=hYeeAMHhjjEqQlEYZEKz2yuw042SZPFV3qsZMfOCH_4,1632
|
5
|
-
semaphoreui_client-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
6
|
-
semaphoreui_client-0.2.0.dist-info/RECORD,,
|
File without changes
|