hermes-client-python 1.8.121__tar.gz → 1.8.122__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.
- {hermes_client_python-1.8.121 → hermes_client_python-1.8.122}/.gitignore +3 -0
- {hermes_client_python-1.8.121 → hermes_client_python-1.8.122}/PKG-INFO +9 -9
- {hermes_client_python-1.8.121 → hermes_client_python-1.8.122}/README.md +8 -8
- {hermes_client_python-1.8.121 → hermes_client_python-1.8.122}/pyproject.toml +1 -1
- {hermes_client_python-1.8.121 → hermes_client_python-1.8.122}/src/hermes_client_python/__init__.py +0 -0
- {hermes_client_python-1.8.121 → hermes_client_python-1.8.122}/src/hermes_client_python/client.py +0 -0
- {hermes_client_python-1.8.121 → hermes_client_python-1.8.122}/src/hermes_client_python/hermes_pb2.py +0 -0
- {hermes_client_python-1.8.121 → hermes_client_python-1.8.122}/src/hermes_client_python/hermes_pb2_grpc.py +0 -0
- {hermes_client_python-1.8.121 → hermes_client_python-1.8.122}/src/hermes_client_python/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: hermes-client-python
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.122
|
|
4
4
|
Summary: Async Python client for Hermes search server
|
|
5
5
|
Project-URL: Homepage, https://github.com/SpaceFrontiers/hermes
|
|
6
6
|
Project-URL: Repository, https://github.com/SpaceFrontiers/hermes
|
|
@@ -215,7 +215,7 @@ await client.search(
|
|
|
215
215
|
)
|
|
216
216
|
```
|
|
217
217
|
|
|
218
|
-
Other supported variants are `binary_dense_vector`, `boost`, `range`,
|
|
218
|
+
Other supported variants are `phrase`, `binary_dense_vector`, `boost`, `range`,
|
|
219
219
|
`prefix`, and `all`. Search results expose the full `DocAddress` needed by
|
|
220
220
|
`get_document()`:
|
|
221
221
|
|
|
@@ -230,13 +230,13 @@ Every RPC accepts an optional `timeout` in seconds. A per-call value overrides
|
|
|
230
230
|
the client default:
|
|
231
231
|
|
|
232
232
|
```python
|
|
233
|
-
|
|
234
|
-
results = await client.search(
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
)
|
|
239
|
-
await client.force_merge("articles", timeout=3600)
|
|
233
|
+
async with HermesClient("localhost:50051", default_timeout=5.0) as client:
|
|
234
|
+
results = await client.search(
|
|
235
|
+
"articles",
|
|
236
|
+
query={"all": {}},
|
|
237
|
+
timeout=0.5,
|
|
238
|
+
)
|
|
239
|
+
await client.force_merge("articles", timeout=3600)
|
|
240
240
|
```
|
|
241
241
|
|
|
242
242
|
gRPC failures raise `grpc.RpcError` (normally
|
|
@@ -191,7 +191,7 @@ await client.search(
|
|
|
191
191
|
)
|
|
192
192
|
```
|
|
193
193
|
|
|
194
|
-
Other supported variants are `binary_dense_vector`, `boost`, `range`,
|
|
194
|
+
Other supported variants are `phrase`, `binary_dense_vector`, `boost`, `range`,
|
|
195
195
|
`prefix`, and `all`. Search results expose the full `DocAddress` needed by
|
|
196
196
|
`get_document()`:
|
|
197
197
|
|
|
@@ -206,13 +206,13 @@ Every RPC accepts an optional `timeout` in seconds. A per-call value overrides
|
|
|
206
206
|
the client default:
|
|
207
207
|
|
|
208
208
|
```python
|
|
209
|
-
|
|
210
|
-
results = await client.search(
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
)
|
|
215
|
-
await client.force_merge("articles", timeout=3600)
|
|
209
|
+
async with HermesClient("localhost:50051", default_timeout=5.0) as client:
|
|
210
|
+
results = await client.search(
|
|
211
|
+
"articles",
|
|
212
|
+
query={"all": {}},
|
|
213
|
+
timeout=0.5,
|
|
214
|
+
)
|
|
215
|
+
await client.force_merge("articles", timeout=3600)
|
|
216
216
|
```
|
|
217
217
|
|
|
218
218
|
gRPC failures raise `grpc.RpcError` (normally
|
{hermes_client_python-1.8.121 → hermes_client_python-1.8.122}/src/hermes_client_python/__init__.py
RENAMED
|
File without changes
|
{hermes_client_python-1.8.121 → hermes_client_python-1.8.122}/src/hermes_client_python/client.py
RENAMED
|
File without changes
|
{hermes_client_python-1.8.121 → hermes_client_python-1.8.122}/src/hermes_client_python/hermes_pb2.py
RENAMED
|
File without changes
|
|
File without changes
|
{hermes_client_python-1.8.121 → hermes_client_python-1.8.122}/src/hermes_client_python/types.py
RENAMED
|
File without changes
|