groundx 2.0.19__tar.gz → 2.0.21__tar.gz
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-2.0.19 → groundx-2.0.21}/PKG-INFO +14 -16
- {groundx-2.0.19 → groundx-2.0.21}/README.md +13 -15
- {groundx-2.0.19 → groundx-2.0.21}/pyproject.toml +1 -1
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/__init__.py +6 -4
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/core/client_wrapper.py +1 -1
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/documents/client.py +273 -460
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/__init__.py +6 -4
- groundx-2.0.21/src/groundx/types/document_local_ingest_request.py +6 -0
- groundx-2.0.21/src/groundx/types/ingest_local_document.py +25 -0
- groundx-2.0.19/src/groundx/types/ingest_document.py → groundx-2.0.21/src/groundx/types/ingest_local_document_metadata.py +6 -9
- groundx-2.0.19/src/groundx/types/crawl_website_source.py → groundx-2.0.21/src/groundx/types/website_source.py +1 -1
- groundx-2.0.19/src/groundx/types/ingest_local_document.py +0 -43
- {groundx-2.0.19 → groundx-2.0.21}/LICENSE +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/buckets/__init__.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/buckets/client.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/client.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/core/__init__.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/core/api_error.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/core/datetime_utils.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/core/file.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/core/http_client.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/core/jsonable_encoder.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/core/pydantic_utilities.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/core/query_encoder.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/core/remove_none_from_dict.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/core/request_options.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/core/serialization.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/customer/__init__.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/customer/client.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/documents/__init__.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/environment.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/errors/__init__.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/errors/bad_request_error.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/errors/unauthorized_error.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/groups/__init__.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/groups/client.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/health/__init__.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/health/client.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/py.typed +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/search/__init__.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/search/client.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/search/types/__init__.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/search/types/search_content_request_id.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/bounding_box_detail.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/bucket_detail.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/bucket_list_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/bucket_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/bucket_update_detail.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/bucket_update_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/customer_detail.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/customer_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/document_detail.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/document_list_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/document_lookup_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/document_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/document_type.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/group_detail.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/group_list_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/group_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/health_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/health_response_health.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/health_service.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/health_service_status.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/ingest_remote_document.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/ingest_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/ingest_response_ingest.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/message_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/meter_detail.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/process_status_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/process_status_response_ingest.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/process_status_response_ingest_progress.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/process_status_response_ingest_progress_cancelled.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/process_status_response_ingest_progress_complete.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/process_status_response_ingest_progress_errors.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/process_status_response_ingest_progress_processing.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/processing_status.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/search_response.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/search_response_search.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/search_result_item.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/sort.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/sort_order.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/subscription_detail.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/types/subscription_detail_meters.py +0 -0
- {groundx-2.0.19 → groundx-2.0.21}/src/groundx/version.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: groundx
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.21
|
4
4
|
Summary:
|
5
5
|
License: MIT
|
6
6
|
Requires-Python: >=3.8,<4.0
|
@@ -52,19 +52,18 @@ A full reference for this library is available [here](./reference.md).
|
|
52
52
|
Instantiate and use the client with the following:
|
53
53
|
|
54
54
|
```python
|
55
|
-
from groundx import GroundX,
|
55
|
+
from groundx import GroundX, IngestRemoteDocument
|
56
56
|
|
57
57
|
client = GroundX(
|
58
58
|
api_key="YOUR_API_KEY",
|
59
59
|
)
|
60
|
-
client.documents.
|
60
|
+
client.documents.ingest_remote(
|
61
61
|
documents=[
|
62
|
-
|
62
|
+
IngestRemoteDocument(
|
63
63
|
bucket_id=1234,
|
64
|
-
file_name="
|
65
|
-
file_path="https://my.source.url.com/file.txt",
|
64
|
+
file_name="my_file1.txt",
|
66
65
|
file_type="txt",
|
67
|
-
|
66
|
+
source_url="https://my.source.url.com/file1.txt",
|
68
67
|
)
|
69
68
|
],
|
70
69
|
)
|
@@ -77,7 +76,7 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
|
|
77
76
|
```python
|
78
77
|
import asyncio
|
79
78
|
|
80
|
-
from groundx import AsyncGroundX,
|
79
|
+
from groundx import AsyncGroundX, IngestRemoteDocument
|
81
80
|
|
82
81
|
client = AsyncGroundX(
|
83
82
|
api_key="YOUR_API_KEY",
|
@@ -85,14 +84,13 @@ client = AsyncGroundX(
|
|
85
84
|
|
86
85
|
|
87
86
|
async def main() -> None:
|
88
|
-
await client.documents.
|
87
|
+
await client.documents.ingest_remote(
|
89
88
|
documents=[
|
90
|
-
|
89
|
+
IngestRemoteDocument(
|
91
90
|
bucket_id=1234,
|
92
|
-
file_name="
|
93
|
-
file_path="https://my.source.url.com/file.txt",
|
91
|
+
file_name="my_file1.txt",
|
94
92
|
file_type="txt",
|
95
|
-
|
93
|
+
source_url="https://my.source.url.com/file1.txt",
|
96
94
|
)
|
97
95
|
],
|
98
96
|
)
|
@@ -110,7 +108,7 @@ will be thrown.
|
|
110
108
|
from groundx.core.api_error import ApiError
|
111
109
|
|
112
110
|
try:
|
113
|
-
client.documents.
|
111
|
+
client.documents.ingest_remote(...)
|
114
112
|
except ApiError as e:
|
115
113
|
print(e.status_code)
|
116
114
|
print(e.body)
|
@@ -133,7 +131,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
|
|
133
131
|
Use the `max_retries` request option to configure this behavior.
|
134
132
|
|
135
133
|
```python
|
136
|
-
client.documents.
|
134
|
+
client.documents.ingest_remote(..., request_options={
|
137
135
|
"max_retries": 1
|
138
136
|
})
|
139
137
|
```
|
@@ -153,7 +151,7 @@ client = GroundX(
|
|
153
151
|
|
154
152
|
|
155
153
|
# Override timeout for a specific method
|
156
|
-
client.documents.
|
154
|
+
client.documents.ingest_remote(..., request_options={
|
157
155
|
"timeout_in_seconds": 1
|
158
156
|
})
|
159
157
|
```
|
@@ -24,19 +24,18 @@ A full reference for this library is available [here](./reference.md).
|
|
24
24
|
Instantiate and use the client with the following:
|
25
25
|
|
26
26
|
```python
|
27
|
-
from groundx import GroundX,
|
27
|
+
from groundx import GroundX, IngestRemoteDocument
|
28
28
|
|
29
29
|
client = GroundX(
|
30
30
|
api_key="YOUR_API_KEY",
|
31
31
|
)
|
32
|
-
client.documents.
|
32
|
+
client.documents.ingest_remote(
|
33
33
|
documents=[
|
34
|
-
|
34
|
+
IngestRemoteDocument(
|
35
35
|
bucket_id=1234,
|
36
|
-
file_name="
|
37
|
-
file_path="https://my.source.url.com/file.txt",
|
36
|
+
file_name="my_file1.txt",
|
38
37
|
file_type="txt",
|
39
|
-
|
38
|
+
source_url="https://my.source.url.com/file1.txt",
|
40
39
|
)
|
41
40
|
],
|
42
41
|
)
|
@@ -49,7 +48,7 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
|
|
49
48
|
```python
|
50
49
|
import asyncio
|
51
50
|
|
52
|
-
from groundx import AsyncGroundX,
|
51
|
+
from groundx import AsyncGroundX, IngestRemoteDocument
|
53
52
|
|
54
53
|
client = AsyncGroundX(
|
55
54
|
api_key="YOUR_API_KEY",
|
@@ -57,14 +56,13 @@ client = AsyncGroundX(
|
|
57
56
|
|
58
57
|
|
59
58
|
async def main() -> None:
|
60
|
-
await client.documents.
|
59
|
+
await client.documents.ingest_remote(
|
61
60
|
documents=[
|
62
|
-
|
61
|
+
IngestRemoteDocument(
|
63
62
|
bucket_id=1234,
|
64
|
-
file_name="
|
65
|
-
file_path="https://my.source.url.com/file.txt",
|
63
|
+
file_name="my_file1.txt",
|
66
64
|
file_type="txt",
|
67
|
-
|
65
|
+
source_url="https://my.source.url.com/file1.txt",
|
68
66
|
)
|
69
67
|
],
|
70
68
|
)
|
@@ -82,7 +80,7 @@ will be thrown.
|
|
82
80
|
from groundx.core.api_error import ApiError
|
83
81
|
|
84
82
|
try:
|
85
|
-
client.documents.
|
83
|
+
client.documents.ingest_remote(...)
|
86
84
|
except ApiError as e:
|
87
85
|
print(e.status_code)
|
88
86
|
print(e.body)
|
@@ -105,7 +103,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
|
|
105
103
|
Use the `max_retries` request option to configure this behavior.
|
106
104
|
|
107
105
|
```python
|
108
|
-
client.documents.
|
106
|
+
client.documents.ingest_remote(..., request_options={
|
109
107
|
"max_retries": 1
|
110
108
|
})
|
111
109
|
```
|
@@ -125,7 +123,7 @@ client = GroundX(
|
|
125
123
|
|
126
124
|
|
127
125
|
# Override timeout for a specific method
|
128
|
-
client.documents.
|
126
|
+
client.documents.ingest_remote(..., request_options={
|
129
127
|
"timeout_in_seconds": 1
|
130
128
|
})
|
131
129
|
```
|
@@ -7,11 +7,11 @@ from .types import (
|
|
7
7
|
BucketResponse,
|
8
8
|
BucketUpdateDetail,
|
9
9
|
BucketUpdateResponse,
|
10
|
-
CrawlWebsiteSource,
|
11
10
|
CustomerDetail,
|
12
11
|
CustomerResponse,
|
13
12
|
DocumentDetail,
|
14
13
|
DocumentListResponse,
|
14
|
+
DocumentLocalIngestRequest,
|
15
15
|
DocumentLookupResponse,
|
16
16
|
DocumentResponse,
|
17
17
|
DocumentType,
|
@@ -22,8 +22,8 @@ from .types import (
|
|
22
22
|
HealthResponseHealth,
|
23
23
|
HealthService,
|
24
24
|
HealthServiceStatus,
|
25
|
-
IngestDocument,
|
26
25
|
IngestLocalDocument,
|
26
|
+
IngestLocalDocumentMetadata,
|
27
27
|
IngestRemoteDocument,
|
28
28
|
IngestResponse,
|
29
29
|
IngestResponseIngest,
|
@@ -44,6 +44,7 @@ from .types import (
|
|
44
44
|
SortOrder,
|
45
45
|
SubscriptionDetail,
|
46
46
|
SubscriptionDetailMeters,
|
47
|
+
WebsiteSource,
|
47
48
|
)
|
48
49
|
from .errors import BadRequestError, UnauthorizedError
|
49
50
|
from . import buckets, customer, documents, groups, health, search
|
@@ -61,11 +62,11 @@ __all__ = [
|
|
61
62
|
"BucketResponse",
|
62
63
|
"BucketUpdateDetail",
|
63
64
|
"BucketUpdateResponse",
|
64
|
-
"CrawlWebsiteSource",
|
65
65
|
"CustomerDetail",
|
66
66
|
"CustomerResponse",
|
67
67
|
"DocumentDetail",
|
68
68
|
"DocumentListResponse",
|
69
|
+
"DocumentLocalIngestRequest",
|
69
70
|
"DocumentLookupResponse",
|
70
71
|
"DocumentResponse",
|
71
72
|
"DocumentType",
|
@@ -78,8 +79,8 @@ __all__ = [
|
|
78
79
|
"HealthResponseHealth",
|
79
80
|
"HealthService",
|
80
81
|
"HealthServiceStatus",
|
81
|
-
"IngestDocument",
|
82
82
|
"IngestLocalDocument",
|
83
|
+
"IngestLocalDocumentMetadata",
|
83
84
|
"IngestRemoteDocument",
|
84
85
|
"IngestResponse",
|
85
86
|
"IngestResponseIngest",
|
@@ -102,6 +103,7 @@ __all__ = [
|
|
102
103
|
"SubscriptionDetail",
|
103
104
|
"SubscriptionDetailMeters",
|
104
105
|
"UnauthorizedError",
|
106
|
+
"WebsiteSource",
|
105
107
|
"__version__",
|
106
108
|
"buckets",
|
107
109
|
"customer",
|