turingdb 0.2.3__py3-none-any.whl → 0.2.5__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.
Potentially problematic release.
This version of turingdb might be problematic. Click here for more details.
- turingdb/turingdb.py +5 -2
- {turingdb-0.2.3.dist-info → turingdb-0.2.5.dist-info}/METADATA +1 -1
- turingdb-0.2.5.dist-info/RECORD +8 -0
- turingdb-0.2.3.dist-info/RECORD +0 -8
- {turingdb-0.2.3.dist-info → turingdb-0.2.5.dist-info}/WHEEL +0 -0
- {turingdb-0.2.3.dist-info → turingdb-0.2.5.dist-info}/licenses/LICENSE.txt +0 -0
turingdb/turingdb.py
CHANGED
|
@@ -17,13 +17,13 @@ class TuringDB:
|
|
|
17
17
|
instance_id: str = "",
|
|
18
18
|
auth_token: str = "",
|
|
19
19
|
host: str = "https://engines.turingdb.ai/sdk",
|
|
20
|
+
timeout: Optional[int] = None,
|
|
20
21
|
):
|
|
21
22
|
import httpx
|
|
22
23
|
import copy
|
|
23
24
|
|
|
24
25
|
self.host = host
|
|
25
|
-
|
|
26
|
-
self._client = httpx.Client(auth=None, verify=False)
|
|
26
|
+
self._client = httpx.Client(auth=None, verify=False, timeout=timeout)
|
|
27
27
|
|
|
28
28
|
self._params = {
|
|
29
29
|
"graph": "default",
|
|
@@ -113,6 +113,9 @@ class TuringDB:
|
|
|
113
113
|
if isinstance(json, dict):
|
|
114
114
|
err = json.get("error")
|
|
115
115
|
if err is not None:
|
|
116
|
+
details = json.get("error_details")
|
|
117
|
+
if details is not None:
|
|
118
|
+
err = f"{err}: {details}"
|
|
116
119
|
raise TuringDBException(err)
|
|
117
120
|
|
|
118
121
|
return json
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
turingdb/__init__.py,sha256=zOhbnDfi_6Zf2aLn7mZho-xHIydeLd8-1TIT2_046Kg,95
|
|
2
|
+
turingdb/__init__.pyi,sha256=O6ZMBGuBgXInR2anKZI3ycMZECIuhlsTUanZiHjZEqs,790
|
|
3
|
+
turingdb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
turingdb/turingdb.py,sha256=xn4v-SLwjS-8v9YyriUhF7GgNBjOH1Du6cJZ42PYvzM,4808
|
|
5
|
+
turingdb-0.2.5.dist-info/METADATA,sha256=YIF4mQepRtNVYst_knRfveBrTP3KoWEc7ZntECxYC7s,519
|
|
6
|
+
turingdb-0.2.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
turingdb-0.2.5.dist-info/licenses/LICENSE.txt,sha256=PgwD9hjeoyWO93yZQnxCyt0s-PlhXWLgqdCPpB91GhY,1078
|
|
8
|
+
turingdb-0.2.5.dist-info/RECORD,,
|
turingdb-0.2.3.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
turingdb/__init__.py,sha256=zOhbnDfi_6Zf2aLn7mZho-xHIydeLd8-1TIT2_046Kg,95
|
|
2
|
-
turingdb/__init__.pyi,sha256=O6ZMBGuBgXInR2anKZI3ycMZECIuhlsTUanZiHjZEqs,790
|
|
3
|
-
turingdb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
turingdb/turingdb.py,sha256=zT1ms_avuTmTA7xg8DfOQbGnGQ4p0awuQXcu43ItPhc,4615
|
|
5
|
-
turingdb-0.2.3.dist-info/METADATA,sha256=vtyv4ImbtOrYk1GuQnVi-46D3s2Nng8WP0l7cm9hRII,519
|
|
6
|
-
turingdb-0.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
turingdb-0.2.3.dist-info/licenses/LICENSE.txt,sha256=PgwD9hjeoyWO93yZQnxCyt0s-PlhXWLgqdCPpB91GhY,1078
|
|
8
|
-
turingdb-0.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|