groundx 2.0.18__py3-none-any.whl → 2.0.19__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.
- groundx/core/client_wrapper.py +1 -1
- groundx/documents/client.py +4 -4
- {groundx-2.0.18.dist-info → groundx-2.0.19.dist-info}/METADATA +6 -6
- {groundx-2.0.18.dist-info → groundx-2.0.19.dist-info}/RECORD +6 -6
- {groundx-2.0.18.dist-info → groundx-2.0.19.dist-info}/LICENSE +0 -0
- {groundx-2.0.18.dist-info → groundx-2.0.19.dist-info}/WHEEL +0 -0
groundx/core/client_wrapper.py
CHANGED
groundx/documents/client.py
CHANGED
@@ -112,7 +112,7 @@ class DocumentsClient:
|
|
112
112
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
113
113
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
114
114
|
|
115
|
-
def
|
115
|
+
def ingest(
|
116
116
|
self, *, documents: typing.Sequence[IngestDocument], request_options: typing.Optional[RequestOptions] = None
|
117
117
|
) -> IngestResponse:
|
118
118
|
"""
|
@@ -139,7 +139,7 @@ class DocumentsClient:
|
|
139
139
|
client = GroundX(
|
140
140
|
api_key="YOUR_API_KEY",
|
141
141
|
)
|
142
|
-
client.documents.
|
142
|
+
client.documents.ingest(
|
143
143
|
documents=[
|
144
144
|
IngestDocument(
|
145
145
|
bucket_id=1234,
|
@@ -947,7 +947,7 @@ class AsyncDocumentsClient:
|
|
947
947
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
948
948
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
949
949
|
|
950
|
-
async def
|
950
|
+
async def ingest(
|
951
951
|
self, *, documents: typing.Sequence[IngestDocument], request_options: typing.Optional[RequestOptions] = None
|
952
952
|
) -> IngestResponse:
|
953
953
|
"""
|
@@ -979,7 +979,7 @@ class AsyncDocumentsClient:
|
|
979
979
|
|
980
980
|
|
981
981
|
async def main() -> None:
|
982
|
-
await client.documents.
|
982
|
+
await client.documents.ingest(
|
983
983
|
documents=[
|
984
984
|
IngestDocument(
|
985
985
|
bucket_id=1234,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: groundx
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.19
|
4
4
|
Summary:
|
5
5
|
License: MIT
|
6
6
|
Requires-Python: >=3.8,<4.0
|
@@ -57,7 +57,7 @@ from groundx import GroundX, IngestDocument
|
|
57
57
|
client = GroundX(
|
58
58
|
api_key="YOUR_API_KEY",
|
59
59
|
)
|
60
|
-
client.documents.
|
60
|
+
client.documents.ingest(
|
61
61
|
documents=[
|
62
62
|
IngestDocument(
|
63
63
|
bucket_id=1234,
|
@@ -85,7 +85,7 @@ client = AsyncGroundX(
|
|
85
85
|
|
86
86
|
|
87
87
|
async def main() -> None:
|
88
|
-
await client.documents.
|
88
|
+
await client.documents.ingest(
|
89
89
|
documents=[
|
90
90
|
IngestDocument(
|
91
91
|
bucket_id=1234,
|
@@ -110,7 +110,7 @@ will be thrown.
|
|
110
110
|
from groundx.core.api_error import ApiError
|
111
111
|
|
112
112
|
try:
|
113
|
-
client.documents.
|
113
|
+
client.documents.ingest(...)
|
114
114
|
except ApiError as e:
|
115
115
|
print(e.status_code)
|
116
116
|
print(e.body)
|
@@ -133,7 +133,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
|
|
133
133
|
Use the `max_retries` request option to configure this behavior.
|
134
134
|
|
135
135
|
```python
|
136
|
-
client.documents.
|
136
|
+
client.documents.ingest(..., request_options={
|
137
137
|
"max_retries": 1
|
138
138
|
})
|
139
139
|
```
|
@@ -153,7 +153,7 @@ client = GroundX(
|
|
153
153
|
|
154
154
|
|
155
155
|
# Override timeout for a specific method
|
156
|
-
client.documents.
|
156
|
+
client.documents.ingest(..., request_options={
|
157
157
|
"timeout_in_seconds": 1
|
158
158
|
})
|
159
159
|
```
|
@@ -4,7 +4,7 @@ groundx/buckets/client.py,sha256=TofNrkej1AC_-FU5rf_y8KG8ubFUpHtLa8PQ7rqax6E,265
|
|
4
4
|
groundx/client.py,sha256=Q1Kw0z6K-z-ShhNyuuPe5fYonM9M2I_55-ukUrUWk1U,6507
|
5
5
|
groundx/core/__init__.py,sha256=SQ85PF84B9MuKnBwHNHWemSGuy-g_515gFYNFhvEE0I,1438
|
6
6
|
groundx/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
7
|
-
groundx/core/client_wrapper.py,sha256=
|
7
|
+
groundx/core/client_wrapper.py,sha256=X38nIST_Dd7BXPecXq1I-3IODFee5YsbPXEULyPclZU,1803
|
8
8
|
groundx/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
9
9
|
groundx/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
10
10
|
groundx/core/http_client.py,sha256=siUQ6UV0ARZALlxubqWSSAAPC9B4VW8y6MGlHStfaeo,19552
|
@@ -17,7 +17,7 @@ groundx/core/serialization.py,sha256=D9h_t-RQON3-CHWs1C4ESY9B-Yd5d-l5lnTLb_X896g
|
|
17
17
|
groundx/customer/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
18
18
|
groundx/customer/client.py,sha256=C_JANeDewRD1Kg-q7LPxdiOSWbYSTOiYlBYZLRYPI44,3467
|
19
19
|
groundx/documents/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
20
|
-
groundx/documents/client.py,sha256=
|
20
|
+
groundx/documents/client.py,sha256=GNT1B6uGS2JnHnC2MfNbwXhkf2JTLLEblK0ouKytA0k,65631
|
21
21
|
groundx/environment.py,sha256=CInm1_DKtZ1mrxutmKb1qqv82P33r_S87hZD3Hc1VB0,159
|
22
22
|
groundx/errors/__init__.py,sha256=-prNYsFd8xxM4va0vR1raZjcd10tllOJKyEWjX_pwdU,214
|
23
23
|
groundx/errors/bad_request_error.py,sha256=_EbO8mWqN9kFZPvIap8qa1lL_EWkRcsZe1HKV9GDWJY,264
|
@@ -76,7 +76,7 @@ groundx/types/sort_order.py,sha256=hfJkStz6zHf3iWQFaVLkNCZPdyj5JS7TsQlN4Ij8Q5A,1
|
|
76
76
|
groundx/types/subscription_detail.py,sha256=WNfUw2EMVECIvNYcV2s51zZ6T3Utc4zYXw63bPaeM6U,768
|
77
77
|
groundx/types/subscription_detail_meters.py,sha256=lBa8-1QlMVHjr5RLGqhiTKnD1KMM0AAHTWvz9TVtG8w,830
|
78
78
|
groundx/version.py,sha256=1yVogKaq260fQfckM2RYN2144SEw0QROsZW8ICtkG4U,74
|
79
|
-
groundx-2.0.
|
80
|
-
groundx-2.0.
|
81
|
-
groundx-2.0.
|
82
|
-
groundx-2.0.
|
79
|
+
groundx-2.0.19.dist-info/LICENSE,sha256=8dMPYAFBTA7O4DUxhrEKEks8CL2waCMYM6dHohW4xrI,1065
|
80
|
+
groundx-2.0.19.dist-info/METADATA,sha256=dm1o9seVYMmGyZT9uAsw7frc_QjIS_aPPdCXVLy5KRQ,5145
|
81
|
+
groundx-2.0.19.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
82
|
+
groundx-2.0.19.dist-info/RECORD,,
|
File without changes
|
File without changes
|