automizor 0.4.17__py3-none-any.whl → 0.4.18__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.
- automizor/__init__.py +1 -1
- automizor/datastore/_datastore.py +2 -2
- automizor/job/_job.py +1 -1
- automizor/storage/_storage.py +6 -6
- automizor/vault/_vault.py +3 -3
- automizor/workflow/_workflow.py +1 -1
- {automizor-0.4.17.dist-info → automizor-0.4.18.dist-info}/METADATA +1 -1
- {automizor-0.4.17.dist-info → automizor-0.4.18.dist-info}/RECORD +11 -11
- {automizor-0.4.17.dist-info → automizor-0.4.18.dist-info}/WHEEL +0 -0
- {automizor-0.4.17.dist-info → automizor-0.4.18.dist-info}/licenses/LICENSE +0 -0
- {automizor-0.4.17.dist-info → automizor-0.4.18.dist-info}/top_level.txt +0 -0
automizor/__init__.py
CHANGED
@@ -75,7 +75,7 @@ class DataStore:
|
|
75
75
|
else {}
|
76
76
|
)
|
77
77
|
url = f"https://{self.url}/api/v1/workflow/datastore/{name}/values/"
|
78
|
-
response = session.get(url, headers=self.headers, params=params, timeout=
|
78
|
+
response = session.get(url, headers=self.headers, params=params, timeout=60)
|
79
79
|
if response.status_code >= 400:
|
80
80
|
raise AutomizorError.from_response(
|
81
81
|
response, "Failed to get datastore values"
|
@@ -85,7 +85,7 @@ class DataStore:
|
|
85
85
|
|
86
86
|
def _set_values(self, name: str, values: JSON) -> None:
|
87
87
|
url = f"https://{self.url}/api/v1/workflow/datastore/{name}/values/"
|
88
|
-
response = session.post(url, headers=self.headers, json=values, timeout=
|
88
|
+
response = session.post(url, headers=self.headers, json=values, timeout=60)
|
89
89
|
if response.status_code >= 400:
|
90
90
|
raise AutomizorError.from_response(
|
91
91
|
response, "Failed to set datastore values"
|
automizor/job/_job.py
CHANGED
@@ -127,7 +127,7 @@ class Job:
|
|
127
127
|
|
128
128
|
def _read_job_context(self) -> dict:
|
129
129
|
url = f"https://{self.url}/api/v1/rpa/job/{self._job_id}/"
|
130
|
-
response = session.get(url, headers=self.headers, timeout=
|
130
|
+
response = session.get(url, headers=self.headers, timeout=60)
|
131
131
|
if response.status_code >= 400:
|
132
132
|
raise AutomizorError.from_response(response, "Failed to get job context")
|
133
133
|
return response.json().get("context", {})
|
automizor/storage/_storage.py
CHANGED
@@ -77,7 +77,7 @@ class Storage:
|
|
77
77
|
asset_names = []
|
78
78
|
|
79
79
|
while url:
|
80
|
-
response = session.get(url, headers=self.headers, timeout=
|
80
|
+
response = session.get(url, headers=self.headers, timeout=60)
|
81
81
|
if response.status_code >= 400:
|
82
82
|
raise AutomizorError.from_response(response, "Failed to list assets")
|
83
83
|
data = response.json()
|
@@ -100,7 +100,7 @@ class Storage:
|
|
100
100
|
"""
|
101
101
|
|
102
102
|
url = f"https://{self.url}/api/v1/storage/asset/{name}/"
|
103
|
-
response = session.delete(url, headers=self.headers, timeout=
|
103
|
+
response = session.delete(url, headers=self.headers, timeout=60)
|
104
104
|
if response.status_code >= 400:
|
105
105
|
raise AutomizorError.from_response(response, "Failed to delete asset")
|
106
106
|
|
@@ -214,14 +214,14 @@ class Storage:
|
|
214
214
|
data = {"content_type": content_type, "name": name}
|
215
215
|
files = {"file": ("text.txt", content, content_type)}
|
216
216
|
response = session.post(
|
217
|
-
url, headers=self.headers, files=files, data=data, timeout=
|
217
|
+
url, headers=self.headers, files=files, data=data, timeout=60
|
218
218
|
)
|
219
219
|
if response.status_code >= 400:
|
220
220
|
raise AutomizorError.from_response(response, "Failed to create asset")
|
221
221
|
|
222
222
|
def _download_file(self, name: str, mode: str = "content"):
|
223
223
|
url = self._get_asset_url(name)
|
224
|
-
response = session.get(url=url, timeout=
|
224
|
+
response = session.get(url=url, timeout=60)
|
225
225
|
if response.status_code >= 400:
|
226
226
|
raise AutomizorError.from_response(response, "Failed to download asset")
|
227
227
|
|
@@ -236,7 +236,7 @@ class Storage:
|
|
236
236
|
|
237
237
|
def _get_asset_url(self, name: str) -> str:
|
238
238
|
url = f"https://{self.url}/api/v1/storage/asset/{name}/"
|
239
|
-
response = session.get(url, headers=self.headers, timeout=
|
239
|
+
response = session.get(url, headers=self.headers, timeout=60)
|
240
240
|
if response.status_code >= 400:
|
241
241
|
raise AutomizorError.from_response(response, "Failed to get asset URL")
|
242
242
|
|
@@ -263,7 +263,7 @@ class Storage:
|
|
263
263
|
data = {"content_type": content_type, "name": name}
|
264
264
|
files = {"file": ("text.txt", content, content_type)}
|
265
265
|
response = session.put(
|
266
|
-
url, headers=self.headers, files=files, data=data, timeout=
|
266
|
+
url, headers=self.headers, files=files, data=data, timeout=60
|
267
267
|
)
|
268
268
|
if response.status_code >= 400:
|
269
269
|
raise AutomizorError.from_response(response, "Failed to update asset")
|
automizor/vault/_vault.py
CHANGED
@@ -113,7 +113,7 @@ class Vault:
|
|
113
113
|
def _create_secret(self, secret: SecretContainer) -> SecretContainer:
|
114
114
|
url = f"https://{self.url}/api/v1/vault/secret/"
|
115
115
|
response = session.post(
|
116
|
-
url, headers=self.headers, timeout=
|
116
|
+
url, headers=self.headers, timeout=60, json=asdict(secret)
|
117
117
|
)
|
118
118
|
if response.status_code >= 400:
|
119
119
|
raise AutomizorError.from_response(response, "Failed to create secret")
|
@@ -121,7 +121,7 @@ class Vault:
|
|
121
121
|
|
122
122
|
def _get_secret(self, name: str) -> SecretContainer:
|
123
123
|
url = f"https://{self.url}/api/v1/vault/secret/{name}/"
|
124
|
-
response = session.get(url, headers=self.headers, timeout=
|
124
|
+
response = session.get(url, headers=self.headers, timeout=60)
|
125
125
|
if response.status_code >= 400:
|
126
126
|
raise AutomizorError.from_response(response, "Failed to get secret")
|
127
127
|
return SecretContainer(**response.json())
|
@@ -129,7 +129,7 @@ class Vault:
|
|
129
129
|
def _update_secret(self, secret: SecretContainer) -> SecretContainer:
|
130
130
|
url = f"https://{self.url}/api/v1/vault/secret/{secret.name}/"
|
131
131
|
response = session.put(
|
132
|
-
url, headers=self.headers, timeout=
|
132
|
+
url, headers=self.headers, timeout=60, json=asdict(secret)
|
133
133
|
)
|
134
134
|
if response.status_code >= 400:
|
135
135
|
raise AutomizorError.from_response(response, "Failed to update secret")
|
automizor/workflow/_workflow.py
CHANGED
@@ -91,6 +91,6 @@ class Workflow:
|
|
91
91
|
"process_model": process_model,
|
92
92
|
"workspace": workspace,
|
93
93
|
}
|
94
|
-
response = session.post(url, headers=self.headers, data=data, timeout=
|
94
|
+
response = session.post(url, headers=self.headers, data=data, timeout=60)
|
95
95
|
if response.status_code >= 400:
|
96
96
|
raise AutomizorError.from_response(response, "Failed to create instance")
|
@@ -1,22 +1,22 @@
|
|
1
|
-
automizor/__init__.py,sha256=
|
1
|
+
automizor/__init__.py,sha256=xHjYmL1gRiG13QDSGbVAj-YKfa5PK9JEr2qaxvD1AJE,499
|
2
2
|
automizor/exceptions.py,sha256=f3dHiW6Tb7jU4Fy1xmNuhLEUvnuZFVSa40sgu1nL4o4,2250
|
3
3
|
automizor/utils.py,sha256=UDYuSERa3IrS_1NreBTNBYf6j25ga2AiwRdq0c3kfvM,965
|
4
4
|
automizor/action/__init__.py,sha256=nZinP2WYc8Da3rxE10Ul0V31GbEFXRgCYXtBOQ-0LwQ,767
|
5
5
|
automizor/action/_action.py,sha256=Yy-11BmIPuP4lhlNxhjfJYgcOqjhxrXCNesNfWht6WI,2692
|
6
6
|
automizor/datastore/__init__.py,sha256=_rAdRfKnTa4SuSLl9GkAYziBPPLsy6yGfS0HprgokOk,2418
|
7
7
|
automizor/datastore/_container.py,sha256=rHRkSWaRgy2rk6Qy-7ADFKvuET_COZ2i9VD7gvRDnlM,745
|
8
|
-
automizor/datastore/_datastore.py,sha256=
|
8
|
+
automizor/datastore/_datastore.py,sha256=bqEoh3K-gQ5MUynN6gB0-Q3QWLZu2zWsaJgMob3kcIU,2996
|
9
9
|
automizor/job/__init__.py,sha256=pDqSfR4lAyJNCi-fpG6byUPidHz8sntBs0bB2lJFVAY,1118
|
10
|
-
automizor/job/_job.py,sha256=
|
10
|
+
automizor/job/_job.py,sha256=ceoZj2PCgUmd7P2qDtsmqZfuxuFN_yUC6fIBdTgY2Gs,5234
|
11
11
|
automizor/storage/__init__.py,sha256=vCez0LucHQeRZDfX5xZulxf06i3ezVyFl4vL3-EYXXU,4160
|
12
|
-
automizor/storage/_storage.py,sha256=
|
12
|
+
automizor/storage/_storage.py,sha256=IhNGZTRbWqb-CFIUWoiCt98aFnLgImR9z5etCqakvOs,9929
|
13
13
|
automizor/vault/__init__.py,sha256=21Ag2zQk7x27Bh0yt_kSO2MkgT3eafbdlKe0NuQEqr8,1796
|
14
14
|
automizor/vault/_container.py,sha256=-2y7kASigoIVAebuQBk-0R_sI4gfmvjsMLuMg_tR1xA,1945
|
15
|
-
automizor/vault/_vault.py,sha256
|
15
|
+
automizor/vault/_vault.py,sha256=gKk3byX5EVfoEunbO8A4UK08g-wN-UigEkqZCoyM_8k,4453
|
16
16
|
automizor/workflow/__init__.py,sha256=J1K_ogAvbeREPbAmVxsAI1SOVHi_5DXnO9JuEKOMdt8,958
|
17
|
-
automizor/workflow/_workflow.py,sha256=
|
18
|
-
automizor-0.4.
|
19
|
-
automizor-0.4.
|
20
|
-
automizor-0.4.
|
21
|
-
automizor-0.4.
|
22
|
-
automizor-0.4.
|
17
|
+
automizor/workflow/_workflow.py,sha256=Ft8ag1Bb2mEXQWCHTEeVAFJz4CrtcwWAXnRaLF-zhbU,3342
|
18
|
+
automizor-0.4.18.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
19
|
+
automizor-0.4.18.dist-info/METADATA,sha256=PE6HI4TAtk6Y2-DzKyFQrDAWtsSAamXirGb2krsIejE,842
|
20
|
+
automizor-0.4.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
21
|
+
automizor-0.4.18.dist-info/top_level.txt,sha256=gScDy4I3tP6BMYAsTAlBXrxVh3E00zV0UioxwXJOI3Y,10
|
22
|
+
automizor-0.4.18.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|