corva-worker-python 2.1.0__py3-none-any.whl → 2.2.0__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.
- {corva_worker_python-2.1.0.dist-info → corva_worker_python-2.2.0.dist-info}/METADATA +1 -1
- {corva_worker_python-2.1.0.dist-info → corva_worker_python-2.2.0.dist-info}/RECORD +5 -5
- worker/data/api.py +2 -1
- {corva_worker_python-2.1.0.dist-info → corva_worker_python-2.2.0.dist-info}/WHEEL +0 -0
- {corva_worker_python-2.1.0.dist-info → corva_worker_python-2.2.0.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: corva-worker-python
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: SDK for interacting with Corva
|
|
5
5
|
Home-page: https://github.com/corva-ai/corva-worker-python
|
|
6
6
|
Author: Jordan Ambra <jordan.ambra@corva.ai>, Mohammadreza Kamyab <m.kamyab@corva.ai>
|
|
@@ -11,7 +11,7 @@ worker/app/modules/time_activity_module.py,sha256=_M3UhF3FNdjUHMJX1SMFx_weqCT087
|
|
|
11
11
|
worker/app/modules/trigger.py,sha256=OYRJCcK9wGxjvi0EcL9ZQSLZOMYR11RGLT_vynK5nF8,1438
|
|
12
12
|
worker/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
worker/data/alert.py,sha256=1sxY2pQMnirmAV9mNNw8MW0dllebprlHK-XgfSfAKKc,3074
|
|
14
|
-
worker/data/api.py,sha256=
|
|
14
|
+
worker/data/api.py,sha256=rXuMv9ceo7XmtpxsXqpjEJwIrKQkuBNXN7AH1qn1hG8,4860
|
|
15
15
|
worker/data/enums.py,sha256=Owe3Kp7UrALRdl7_C829S6ULhBK_IRWUXcw_gA_2PT8,3876
|
|
16
16
|
worker/data/json_encoder.py,sha256=jJcpNymA8370bgVIi_cz-EcUHjn4clC_I_t_2bK8Dqk,549
|
|
17
17
|
worker/data/math.py,sha256=TSDwWZD-gY6oikhPSmpt97dcxhIFEV5wZgiZcs3FcxE,2952
|
|
@@ -57,7 +57,7 @@ worker/wellbore/model/enums.py,sha256=DZm-o9ZCM1hSRHw_CcOK4Oy2Q_bmpDM7Gx3GlKQ_bv
|
|
|
57
57
|
worker/wellbore/model/hole.py,sha256=LYikxOMJfxhc2yoKZN12pDBIl6W8apJcAGtGR3ZuvhM,10046
|
|
58
58
|
worker/wellbore/model/hole_section.py,sha256=4sfP19xiY--wV1Ve2MtRoNqpya-FdPhNNmTgxLb90uk,1630
|
|
59
59
|
worker/wellbore/model/riser.py,sha256=ElxvQMfdFTGGpJ1Jba_DNVue3zGAsm-05zDl1HBXwDk,824
|
|
60
|
-
corva_worker_python-2.
|
|
61
|
-
corva_worker_python-2.
|
|
62
|
-
corva_worker_python-2.
|
|
63
|
-
corva_worker_python-2.
|
|
60
|
+
corva_worker_python-2.2.0.dist-info/METADATA,sha256=TGuXSTINJvraz7MTXKquDOZA02gmu-Kvg8tEIJSjMdw,1017
|
|
61
|
+
corva_worker_python-2.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
62
|
+
corva_worker_python-2.2.0.dist-info/top_level.txt,sha256=KrP-SOC-I1V0U33nVzMgkHR8wO-reJYASIvWVyLyFIY,7
|
|
63
|
+
corva_worker_python-2.2.0.dist-info/RECORD,,
|
worker/data/api.py
CHANGED
|
@@ -40,6 +40,7 @@ class API(object):
|
|
|
40
40
|
|
|
41
41
|
def call(self, method, path, **kwargs):
|
|
42
42
|
content_type = kwargs.pop("content_type", "application/json")
|
|
43
|
+
timeout = kwargs.pop("timeout", 30)
|
|
43
44
|
headers = {
|
|
44
45
|
"Authorization": "API {0}".format(self.api_key),
|
|
45
46
|
"Content-Type": content_type,
|
|
@@ -68,7 +69,7 @@ class API(object):
|
|
|
68
69
|
if not path.startswith(self.api_url):
|
|
69
70
|
path = "{0}{1}".format(self.api_url, path)
|
|
70
71
|
|
|
71
|
-
response = http_method(url=path, data=data, params=kwargs, headers=headers)
|
|
72
|
+
response = http_method(url=path, data=data, params=kwargs, headers=headers, timeout=timeout)
|
|
72
73
|
|
|
73
74
|
# closing the http connection after a request
|
|
74
75
|
http.close()
|
|
File without changes
|
|
File without changes
|