meilisearch-python-sdk 5.2.0__py3-none-any.whl → 5.3.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.
Potentially problematic release.
This version of meilisearch-python-sdk might be problematic. Click here for more details.
- meilisearch_python_sdk/_client.py +3 -3
- meilisearch_python_sdk/_task.py +4 -4
- meilisearch_python_sdk/_version.py +1 -1
- meilisearch_python_sdk/decorators.py +6 -6
- meilisearch_python_sdk/index.py +33 -23
- {meilisearch_python_sdk-5.2.0.dist-info → meilisearch_python_sdk-5.3.0.dist-info}/METADATA +2 -2
- {meilisearch_python_sdk-5.2.0.dist-info → meilisearch_python_sdk-5.3.0.dist-info}/RECORD +9 -9
- {meilisearch_python_sdk-5.2.0.dist-info → meilisearch_python_sdk-5.3.0.dist-info}/WHEEL +0 -0
- {meilisearch_python_sdk-5.2.0.dist-info → meilisearch_python_sdk-5.3.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -87,7 +87,7 @@ class BaseClient:
|
|
|
87
87
|
token.
|
|
88
88
|
api_key: The API key to use to generate the token.
|
|
89
89
|
expires_at: The timepoint at which the token should expire. If value is provided it
|
|
90
|
-
|
|
90
|
+
should be a UTC time in the future. Default = None.
|
|
91
91
|
|
|
92
92
|
Returns:
|
|
93
93
|
A JWT token
|
|
@@ -1170,7 +1170,7 @@ class AsyncClient(BaseClient):
|
|
|
1170
1170
|
timeout_in_ms: Amount of time in milliseconds to wait before raising a
|
|
1171
1171
|
MeilisearchTimeoutError. `None` can also be passed to wait indefinitely. Be aware that
|
|
1172
1172
|
if the `None` option is used the wait time could be very long. Defaults to 5000.
|
|
1173
|
-
interval_in_ms: Time interval in
|
|
1173
|
+
interval_in_ms: Time interval in milliseconds to sleep between requests. Defaults to 50.
|
|
1174
1174
|
raise_for_status: When set to `True` a MeilisearchTaskFailedError will be raised if a task
|
|
1175
1175
|
has a failed status. Defaults to False.
|
|
1176
1176
|
|
|
@@ -2271,7 +2271,7 @@ class Client(BaseClient):
|
|
|
2271
2271
|
timeout_in_ms: Amount of time in milliseconds to wait before raising a
|
|
2272
2272
|
MeilisearchTimeoutError. `None` can also be passed to wait indefinitely. Be aware that
|
|
2273
2273
|
if the `None` option is used the wait time could be very long. Defaults to 5000.
|
|
2274
|
-
interval_in_ms: Time interval in
|
|
2274
|
+
interval_in_ms: Time interval in milliseconds to sleep between requests. Defaults to 50.
|
|
2275
2275
|
raise_for_status: When set to `True` a MeilisearchTaskFailedError will be raised if a task
|
|
2276
2276
|
has a failed status. Defaults to False.
|
|
2277
2277
|
|
meilisearch_python_sdk/_task.py
CHANGED
|
@@ -73,7 +73,7 @@ async def async_cancel_tasks(
|
|
|
73
73
|
)
|
|
74
74
|
|
|
75
75
|
if not parameters:
|
|
76
|
-
# Cancel all tasks if no
|
|
76
|
+
# Cancel all tasks if no parameters provided
|
|
77
77
|
parameters["statuses"] = "enqueued,processing"
|
|
78
78
|
|
|
79
79
|
url = f"tasks/cancel?{urlencode(parameters)}"
|
|
@@ -107,7 +107,7 @@ async def async_delete_tasks(
|
|
|
107
107
|
)
|
|
108
108
|
|
|
109
109
|
if not parameters:
|
|
110
|
-
# delete all tasks if no
|
|
110
|
+
# delete all tasks if no parameters provided
|
|
111
111
|
parameters["statuses"] = "canceled,enqueued,failed,processing,succeeded"
|
|
112
112
|
|
|
113
113
|
url = f"tasks?{urlencode(parameters)}"
|
|
@@ -214,7 +214,7 @@ def cancel_tasks(
|
|
|
214
214
|
)
|
|
215
215
|
|
|
216
216
|
if not parameters:
|
|
217
|
-
# Cancel all tasks if no
|
|
217
|
+
# Cancel all tasks if no parameters provided
|
|
218
218
|
parameters["statuses"] = "enqueued,processing"
|
|
219
219
|
|
|
220
220
|
url = f"tasks/cancel?{urlencode(parameters)}"
|
|
@@ -248,7 +248,7 @@ def delete_tasks(
|
|
|
248
248
|
)
|
|
249
249
|
|
|
250
250
|
if not parameters:
|
|
251
|
-
# delete all tasks if no
|
|
251
|
+
# delete all tasks if no parameters provided
|
|
252
252
|
parameters["statuses"] = "canceled,enqueued,failed,processing,succeeded"
|
|
253
253
|
|
|
254
254
|
url = f"tasks?{urlencode(parameters)}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION = "5.
|
|
1
|
+
VERSION = "5.3.0"
|
|
@@ -10,7 +10,7 @@ from meilisearch_python_sdk._utils import use_task_groups
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class ConnectionInfo(NamedTuple):
|
|
13
|
-
"""
|
|
13
|
+
"""Information on how to connect to Meilisearch.
|
|
14
14
|
|
|
15
15
|
url: URL for the Meilisearch server.
|
|
16
16
|
api_key: The API key for the server.
|
|
@@ -29,13 +29,13 @@ def async_add_documents(
|
|
|
29
29
|
wait_for_task: bool = False,
|
|
30
30
|
verify: bool = True,
|
|
31
31
|
) -> Callable:
|
|
32
|
-
"""Decorator that takes the returned documents from a function and
|
|
32
|
+
"""Decorator that takes the returned documents from a function and asynchronously adds them to Meilisearch.
|
|
33
33
|
|
|
34
34
|
It is required that either an async_client or url is provided.
|
|
35
35
|
|
|
36
36
|
Args:
|
|
37
37
|
index_name: The name of the index to which the documents should be added.
|
|
38
|
-
connection_info: Either an AsyncClient instance ConnectionInfo with
|
|
38
|
+
connection_info: Either an AsyncClient instance ConnectionInfo with information on how to
|
|
39
39
|
connect to Meilisearch.
|
|
40
40
|
batch_size: If provided the documents will be sent in batches of the specified size.
|
|
41
41
|
Otherwise all documents are sent at once. Default = None.
|
|
@@ -46,7 +46,7 @@ def async_add_documents(
|
|
|
46
46
|
verify: If set to `False` the decorator will not verify the SSL certificate of the server.
|
|
47
47
|
|
|
48
48
|
Returns:
|
|
49
|
-
The list of documents
|
|
49
|
+
The list of documents provided by the decorated function.
|
|
50
50
|
|
|
51
51
|
Raises:
|
|
52
52
|
MeilisearchCommunicationError: If there was an error communicating with the server.
|
|
@@ -117,7 +117,7 @@ def add_documents(
|
|
|
117
117
|
|
|
118
118
|
Args:
|
|
119
119
|
index_name: The name of the index to which the documents should be added.
|
|
120
|
-
connection_info: Either an Client instance ConnectionInfo with
|
|
120
|
+
connection_info: Either an Client instance ConnectionInfo with information on how to
|
|
121
121
|
connect to Meilisearch.
|
|
122
122
|
batch_size: If provided the documents will be sent in batches of the specified size.
|
|
123
123
|
Otherwise all documents are sent at once. Default = None.
|
|
@@ -128,7 +128,7 @@ def add_documents(
|
|
|
128
128
|
verify: If set to `False` the decorator will not verify the SSL certificate of the server.
|
|
129
129
|
|
|
130
130
|
Returns:
|
|
131
|
-
The list of documents
|
|
131
|
+
The list of documents provided by the decorated function.
|
|
132
132
|
|
|
133
133
|
Raises:
|
|
134
134
|
MeilisearchCommunicationError: If there was an error communicating with the server.
|
meilisearch_python_sdk/index.py
CHANGED
|
@@ -562,7 +562,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
562
562
|
return self
|
|
563
563
|
|
|
564
564
|
async def fetch_info(self) -> Self:
|
|
565
|
-
"""Gets the
|
|
565
|
+
"""Gets the information about the index.
|
|
566
566
|
|
|
567
567
|
Returns:
|
|
568
568
|
An instance of the AsyncIndex containing the retrieved information.
|
|
@@ -757,7 +757,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
757
757
|
attributes_to_retrieve: Attributes to display in the returned documents.
|
|
758
758
|
Defaults to ["*"].
|
|
759
759
|
attributes_to_crop: Attributes whose values have to be cropped. Defaults to None.
|
|
760
|
-
crop_length: The
|
|
760
|
+
crop_length: The maximum number of words to display. Defaults to 200.
|
|
761
761
|
attributes_to_highlight: Attributes whose values will contain highlighted matching terms.
|
|
762
762
|
Defaults to None.
|
|
763
763
|
sort: Attributes by which to sort the results. Defaults to None.
|
|
@@ -765,7 +765,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
765
765
|
matches should be returned or not. Defaults to False.
|
|
766
766
|
highlight_pre_tag: The opening tag for highlighting text. Defaults to <em>.
|
|
767
767
|
highlight_post_tag: The closing tag for highlighting text. Defaults to </em>
|
|
768
|
-
crop_marker: Marker to display when the number of words
|
|
768
|
+
crop_marker: Marker to display when the number of words exceeds the `crop_length`.
|
|
769
769
|
Defaults to ...
|
|
770
770
|
matching_strategy: Specifies the matching strategy Meilisearch should use. Defaults to
|
|
771
771
|
`last`.
|
|
@@ -1036,7 +1036,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
1036
1036
|
attributes_to_retrieve: Attributes to display in the returned documents.
|
|
1037
1037
|
Defaults to ["*"].
|
|
1038
1038
|
attributes_to_crop: Attributes whose values have to be cropped. Defaults to None.
|
|
1039
|
-
crop_length: The
|
|
1039
|
+
crop_length: The maximum number of words to display. Defaults to 200.
|
|
1040
1040
|
attributes_to_highlight: Attributes whose values will contain highlighted matching terms.
|
|
1041
1041
|
Defaults to None.
|
|
1042
1042
|
sort: Attributes by which to sort the results. Defaults to None.
|
|
@@ -1044,7 +1044,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
1044
1044
|
matches should be returned or not. Defaults to False.
|
|
1045
1045
|
highlight_pre_tag: The opening tag for highlighting text. Defaults to <em>.
|
|
1046
1046
|
highlight_post_tag: The closing tag for highlighting text. Defaults to </em>
|
|
1047
|
-
crop_marker: Marker to display when the number of words
|
|
1047
|
+
crop_marker: Marker to display when the number of words exceeds the `crop_length`.
|
|
1048
1048
|
Defaults to ...
|
|
1049
1049
|
matching_strategy: Specifies the matching strategy Meilisearch should use. Defaults to
|
|
1050
1050
|
`last`.
|
|
@@ -1372,6 +1372,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
1372
1372
|
async def get_documents(
|
|
1373
1373
|
self,
|
|
1374
1374
|
*,
|
|
1375
|
+
ids: list[str] | None = None,
|
|
1375
1376
|
offset: int = 0,
|
|
1376
1377
|
limit: int = 20,
|
|
1377
1378
|
fields: list[str] | None = None,
|
|
@@ -1382,6 +1383,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
1382
1383
|
"""Get a batch documents from the index.
|
|
1383
1384
|
|
|
1384
1385
|
Args:
|
|
1386
|
+
ids: Array of document primary keys to retrieve. Defaults to None (Gets all documents).
|
|
1385
1387
|
offset: Number of documents to skip. Defaults to 0.
|
|
1386
1388
|
limit: Maximum number of documents returnedd. Defaults to 20.
|
|
1387
1389
|
fields: Document attributes to show. If this value is None then all
|
|
@@ -1418,7 +1420,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
1418
1420
|
if retrieve_vectors:
|
|
1419
1421
|
parameters["retrieveVectors"] = "true"
|
|
1420
1422
|
|
|
1421
|
-
if not filter:
|
|
1423
|
+
if not filter and not ids:
|
|
1422
1424
|
if fields:
|
|
1423
1425
|
parameters["fields"] = ",".join(fields)
|
|
1424
1426
|
|
|
@@ -1432,6 +1434,9 @@ class AsyncIndex(_BaseIndex):
|
|
|
1432
1434
|
|
|
1433
1435
|
parameters["filter"] = filter
|
|
1434
1436
|
|
|
1437
|
+
if ids:
|
|
1438
|
+
parameters["ids"] = ids
|
|
1439
|
+
|
|
1435
1440
|
response = await self._http_requests.post(f"{self._documents_url}/fetch", body=parameters)
|
|
1436
1441
|
|
|
1437
1442
|
return DocumentsInfo(**response.json())
|
|
@@ -1663,8 +1668,8 @@ class AsyncIndex(_BaseIndex):
|
|
|
1663
1668
|
primary_key: The primary key of the documents. This will be ignored if already set.
|
|
1664
1669
|
Defaults to None.
|
|
1665
1670
|
document_type: The type of document being added. Accepted types are json, csv, and
|
|
1666
|
-
ndjson. For csv files the first row of the document should be a header row
|
|
1667
|
-
the field names, and ever for should have a title.
|
|
1671
|
+
ndjson. For csv files the first row of the document should be a header row
|
|
1672
|
+
containing the field names, and ever for should have a title.
|
|
1668
1673
|
csv_delimiter: A single ASCII character to specify the delimiter for csv files. This
|
|
1669
1674
|
can only be used if the file is a csv file. Defaults to comma.
|
|
1670
1675
|
combine_documents: If set to True this will combine the documents from all the files
|
|
@@ -1827,7 +1832,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
1827
1832
|
primary_key: The primary key of the documents. This will be ignored if already set.
|
|
1828
1833
|
Defaults to None.
|
|
1829
1834
|
document_type: The type of document being added. Accepted types are json, csv, and
|
|
1830
|
-
ndjson. For csv files the first row of the document should be a header row
|
|
1835
|
+
ndjson. For csv files the first row of the document should be a header row containing
|
|
1831
1836
|
the field names, and ever for should have a title.
|
|
1832
1837
|
csv_delimiter: A single ASCII character to specify the delimiter for csv files. This
|
|
1833
1838
|
can only be used if the file is a csv file. Defaults to comma.
|
|
@@ -2350,7 +2355,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
2350
2355
|
primary_key: The primary key of the documents. This will be ignored if already set.
|
|
2351
2356
|
Defaults to None.
|
|
2352
2357
|
document_type: The type of document being added. Accepted types are json, csv, and
|
|
2353
|
-
ndjson. For csv files the first row of the document should be a header row
|
|
2358
|
+
ndjson. For csv files the first row of the document should be a header row containing
|
|
2354
2359
|
the field names, and ever for should have a title.
|
|
2355
2360
|
csv_delimiter: A single ASCII character to specify the delimiter for csv files. This
|
|
2356
2361
|
can only be used if the file is a csv file. Defaults to comma.
|
|
@@ -2462,7 +2467,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
2462
2467
|
primary_key: The primary key of the documents. This will be ignored if already set.
|
|
2463
2468
|
Defaults to None.
|
|
2464
2469
|
document_type: The type of document being added. Accepted types are json, csv, and
|
|
2465
|
-
ndjson. For csv files the first row of the document should be a header row
|
|
2470
|
+
ndjson. For csv files the first row of the document should be a header row containing
|
|
2466
2471
|
the field names, and ever for should have a title.
|
|
2467
2472
|
csv_delimiter: A single ASCII character to specify the delimiter for csv files. This
|
|
2468
2473
|
can only be used if the file is a csv file. Defaults to comma.
|
|
@@ -2907,7 +2912,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
2907
2912
|
MeilisearchApiError: If the Meilisearch API returned an error.
|
|
2908
2913
|
|
|
2909
2914
|
Examples
|
|
2910
|
-
>>> from
|
|
2915
|
+
>>> from meilisearch_python_sdk import AsyncClient
|
|
2911
2916
|
>>> async with AsyncClient("http://localhost.com", "masterKey") as client:
|
|
2912
2917
|
>>> index = client.index("movies")
|
|
2913
2918
|
>>> await index.delete_documents_by_filter("genre=horor"))
|
|
@@ -5028,7 +5033,7 @@ class Index(_BaseIndex):
|
|
|
5028
5033
|
return self
|
|
5029
5034
|
|
|
5030
5035
|
def fetch_info(self) -> Self:
|
|
5031
|
-
"""Gets the
|
|
5036
|
+
"""Gets the information about the index.
|
|
5032
5037
|
|
|
5033
5038
|
Returns:
|
|
5034
5039
|
An instance of the AsyncIndex containing the retrieved information.
|
|
@@ -5216,7 +5221,7 @@ class Index(_BaseIndex):
|
|
|
5216
5221
|
attributes_to_retrieve: Attributes to display in the returned documents.
|
|
5217
5222
|
Defaults to ["*"].
|
|
5218
5223
|
attributes_to_crop: Attributes whose values have to be cropped. Defaults to None.
|
|
5219
|
-
crop_length: The
|
|
5224
|
+
crop_length: The maximum number of words to display. Defaults to 200.
|
|
5220
5225
|
attributes_to_highlight: Attributes whose values will contain highlighted matching terms.
|
|
5221
5226
|
Defaults to None.
|
|
5222
5227
|
sort: Attributes by which to sort the results. Defaults to None.
|
|
@@ -5224,7 +5229,7 @@ class Index(_BaseIndex):
|
|
|
5224
5229
|
matches should be returned or not. Defaults to False.
|
|
5225
5230
|
highlight_pre_tag: The opening tag for highlighting text. Defaults to <em>.
|
|
5226
5231
|
highlight_post_tag: The closing tag for highlighting text. Defaults to </em>
|
|
5227
|
-
crop_marker: Marker to display when the number of words
|
|
5232
|
+
crop_marker: Marker to display when the number of words exceeds the `crop_length`.
|
|
5228
5233
|
Defaults to ...
|
|
5229
5234
|
matching_strategy: Specifies the matching strategy Meilisearch should use. Defaults to
|
|
5230
5235
|
`last`.
|
|
@@ -5401,7 +5406,7 @@ class Index(_BaseIndex):
|
|
|
5401
5406
|
attributes_to_retrieve: Attributes to display in the returned documents.
|
|
5402
5407
|
Defaults to ["*"].
|
|
5403
5408
|
attributes_to_crop: Attributes whose values have to be cropped. Defaults to None.
|
|
5404
|
-
crop_length: The
|
|
5409
|
+
crop_length: The maximum number of words to display. Defaults to 200.
|
|
5405
5410
|
attributes_to_highlight: Attributes whose values will contain highlighted matching terms.
|
|
5406
5411
|
Defaults to None.
|
|
5407
5412
|
sort: Attributes by which to sort the results. Defaults to None.
|
|
@@ -5409,7 +5414,7 @@ class Index(_BaseIndex):
|
|
|
5409
5414
|
matches should be returned or not. Defaults to False.
|
|
5410
5415
|
highlight_pre_tag: The opening tag for highlighting text. Defaults to <em>.
|
|
5411
5416
|
highlight_post_tag: The closing tag for highlighting text. Defaults to </em>
|
|
5412
|
-
crop_marker: Marker to display when the number of words
|
|
5417
|
+
crop_marker: Marker to display when the number of words exceeds the `crop_length`.
|
|
5413
5418
|
Defaults to ...
|
|
5414
5419
|
matching_strategy: Specifies the matching strategy Meilisearch should use. Defaults to
|
|
5415
5420
|
`last`.
|
|
@@ -5640,6 +5645,7 @@ class Index(_BaseIndex):
|
|
|
5640
5645
|
def get_documents(
|
|
5641
5646
|
self,
|
|
5642
5647
|
*,
|
|
5648
|
+
ids: list[str] | None = None,
|
|
5643
5649
|
offset: int = 0,
|
|
5644
5650
|
limit: int = 20,
|
|
5645
5651
|
fields: list[str] | None = None,
|
|
@@ -5650,6 +5656,7 @@ class Index(_BaseIndex):
|
|
|
5650
5656
|
"""Get a batch documents from the index.
|
|
5651
5657
|
|
|
5652
5658
|
Args:
|
|
5659
|
+
ids: Array of document primary keys to retrieve. Defaults to None (Gets all documents).
|
|
5653
5660
|
offset: Number of documents to skip. Defaults to 0.
|
|
5654
5661
|
limit: Maximum number of documents returnedd. Defaults to 20.
|
|
5655
5662
|
fields: Document attributes to show. If this value is None then all
|
|
@@ -5686,7 +5693,7 @@ class Index(_BaseIndex):
|
|
|
5686
5693
|
if retrieve_vectors:
|
|
5687
5694
|
parameters["retrieveVectors"] = "true"
|
|
5688
5695
|
|
|
5689
|
-
if not filter:
|
|
5696
|
+
if not filter and not ids:
|
|
5690
5697
|
if fields:
|
|
5691
5698
|
parameters["fields"] = ",".join(fields)
|
|
5692
5699
|
|
|
@@ -5700,6 +5707,9 @@ class Index(_BaseIndex):
|
|
|
5700
5707
|
|
|
5701
5708
|
parameters["filter"] = filter
|
|
5702
5709
|
|
|
5710
|
+
if ids:
|
|
5711
|
+
parameters["ids"] = ids
|
|
5712
|
+
|
|
5703
5713
|
response = self._http_requests.post(f"{self._documents_url}/fetch", body=parameters)
|
|
5704
5714
|
|
|
5705
5715
|
return DocumentsInfo(**response.json())
|
|
@@ -5817,7 +5827,7 @@ class Index(_BaseIndex):
|
|
|
5817
5827
|
primary_key: The primary key of the documents. This will be ignored if already set.
|
|
5818
5828
|
Defaults to None.
|
|
5819
5829
|
document_type: The type of document being added. Accepted types are json, csv, and
|
|
5820
|
-
ndjson. For csv files the first row of the document should be a header row
|
|
5830
|
+
ndjson. For csv files the first row of the document should be a header row containing
|
|
5821
5831
|
the field names, and ever for should have a title.
|
|
5822
5832
|
csv_delimiter: A single ASCII character to specify the delimiter for csv files. This
|
|
5823
5833
|
can only be used if the file is a csv file. Defaults to comma.
|
|
@@ -5893,7 +5903,7 @@ class Index(_BaseIndex):
|
|
|
5893
5903
|
primary_key: The primary key of the documents. This will be ignored if already set.
|
|
5894
5904
|
Defaults to None.
|
|
5895
5905
|
document_type: The type of document being added. Accepted types are json, csv, and
|
|
5896
|
-
ndjson. For csv files the first row of the document should be a header row
|
|
5906
|
+
ndjson. For csv files the first row of the document should be a header row containing
|
|
5897
5907
|
the field names, and ever for should have a title.
|
|
5898
5908
|
csv_delimiter: A single ASCII character to specify the delimiter for csv files. This
|
|
5899
5909
|
can only be used if the file is a csv file. Defaults to comma.
|
|
@@ -6282,7 +6292,7 @@ class Index(_BaseIndex):
|
|
|
6282
6292
|
primary_key: The primary key of the documents. This will be ignored if already set.
|
|
6283
6293
|
Defaults to None.
|
|
6284
6294
|
document_type: The type of document being added. Accepted types are json, csv, and
|
|
6285
|
-
ndjson. For csv files the first row of the document should be a header row
|
|
6295
|
+
ndjson. For csv files the first row of the document should be a header row containing
|
|
6286
6296
|
the field names, and ever for should have a title.
|
|
6287
6297
|
csv_delimiter: A single ASCII character to specify the delimiter for csv files. This
|
|
6288
6298
|
can only be used if the file is a csv file. Defaults to comma.
|
|
@@ -6357,8 +6367,8 @@ class Index(_BaseIndex):
|
|
|
6357
6367
|
primary_key: The primary key of the documents. This will be ignored if already set.
|
|
6358
6368
|
Defaults to None.
|
|
6359
6369
|
document_type: The type of document being added. Accepted types are json, csv, and
|
|
6360
|
-
ndjson. For csv files the first row of the document should be a header row
|
|
6361
|
-
the field names, and ever for should have a title.
|
|
6370
|
+
ndjson. For csv files the first row of the document should be a header row
|
|
6371
|
+
containing the field names, and ever for should have a title.
|
|
6362
6372
|
csv_delimiter: A single ASCII character to specify the delimiter for csv files. This
|
|
6363
6373
|
can only be used if the file is a csv file. Defaults to comma.
|
|
6364
6374
|
combine_documents: If set to True this will combine the documents from all the files
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meilisearch-python-sdk
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.3.0
|
|
4
4
|
Summary: A Python client providing both async and sync support for the Meilisearch API
|
|
5
5
|
Project-URL: repository, https://github.com/sanders41/meilisearch-python-sdk
|
|
6
6
|
Project-URL: homepage, https://github.com/sanders41/meilisearch-python-sdk
|
|
@@ -252,7 +252,7 @@ Meilisearch takes to index the documents since that is outside of the library fu
|
|
|
252
252
|
|
|
253
253
|

|
|
254
254
|
|
|
255
|
-
###
|
|
255
|
+
### Multiple Searches
|
|
256
256
|
|
|
257
257
|
This test compares how long it takes to complete 1000 searches (lower is better)
|
|
258
258
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
meilisearch_python_sdk/__init__.py,sha256=SB0Jlm6FwT13J9xasZKseZzTWBk0hkfe1CWyWmIIZnE,258
|
|
2
2
|
meilisearch_python_sdk/_batch.py,sha256=Hbt-M8Lt8ZDZqcKToUMzUd5zvT-gku709er4pRlvXWk,5065
|
|
3
|
-
meilisearch_python_sdk/_client.py,sha256=
|
|
3
|
+
meilisearch_python_sdk/_client.py,sha256=wDGeki-lZx9IHQhtkN5JY4Z_W0K7c2MnR7q0tvSfCZU,91504
|
|
4
4
|
meilisearch_python_sdk/_http_requests.py,sha256=9NMTKrJDFpdWZKPLNGlRQ54EtqhPXlhov3EoeR3VrwU,6773
|
|
5
|
-
meilisearch_python_sdk/_task.py,sha256=
|
|
5
|
+
meilisearch_python_sdk/_task.py,sha256=vZuBozL0qQDJBwEGgq6mrmYjJPBNi_NzCMk_uql0tsA,12485
|
|
6
6
|
meilisearch_python_sdk/_utils.py,sha256=NoCDxJPhjABeuSxFTNCih585UDWdXEUBD_FvdgtScQw,1539
|
|
7
|
-
meilisearch_python_sdk/_version.py,sha256=
|
|
8
|
-
meilisearch_python_sdk/decorators.py,sha256=
|
|
7
|
+
meilisearch_python_sdk/_version.py,sha256=CiZ4Q0e8bsMieE5CwowPjU5odGERRC1IIpiMtSINDUg,18
|
|
8
|
+
meilisearch_python_sdk/decorators.py,sha256=6v630usrbHS8KFxgEI1U_STo3QWDnwGzOnbq7NPGp_0,8703
|
|
9
9
|
meilisearch_python_sdk/errors.py,sha256=RNNHXtXLBiCVZaLM2MeKKs9RbRuE-SLRttiPeVAEXgA,2133
|
|
10
|
-
meilisearch_python_sdk/index.py,sha256=
|
|
10
|
+
meilisearch_python_sdk/index.py,sha256=jK0a73goCup_V1jMZ6MlrmaAlrp_MGCe-q-zRfP9gko,352995
|
|
11
11
|
meilisearch_python_sdk/json_handler.py,sha256=c1rGKzYlE0dGfLygQjPqVUNfQkN1JvafBGmIx31JW8g,2044
|
|
12
12
|
meilisearch_python_sdk/plugins.py,sha256=YySzTuVr4IrogTgrP8q-gZPsew8TwedopjWnTj5eV48,3607
|
|
13
13
|
meilisearch_python_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -23,7 +23,7 @@ meilisearch_python_sdk/models/settings.py,sha256=eh0xnro4D_sj8ck2nifa3tBdf2_7RcZ
|
|
|
23
23
|
meilisearch_python_sdk/models/task.py,sha256=JVYF46ylD-XwqVVNq2offhLOkljaGxPyRVuF6PwLOBU,2174
|
|
24
24
|
meilisearch_python_sdk/models/version.py,sha256=ISU-ZHgpXLBFDuMpWWfKdVo9Dq1HcD7s6HFnCiGTF8Y,184
|
|
25
25
|
meilisearch_python_sdk/models/webhook.py,sha256=zSkEJJdEflinW3_seJTLQ_ZWs4w-pjTD3SS1ZawC32k,455
|
|
26
|
-
meilisearch_python_sdk-5.
|
|
27
|
-
meilisearch_python_sdk-5.
|
|
28
|
-
meilisearch_python_sdk-5.
|
|
29
|
-
meilisearch_python_sdk-5.
|
|
26
|
+
meilisearch_python_sdk-5.3.0.dist-info/METADATA,sha256=jvCbYsvySP6BLzw40o1K_b4QCpzkynEf1wI96L9gI6Q,9729
|
|
27
|
+
meilisearch_python_sdk-5.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
28
|
+
meilisearch_python_sdk-5.3.0.dist-info/licenses/LICENSE,sha256=xVzevI1TrlKfM0plmJ7vfK1Muu0V9n-dGE8RnDrOFlM,1069
|
|
29
|
+
meilisearch_python_sdk-5.3.0.dist-info/RECORD,,
|
|
File without changes
|
{meilisearch_python_sdk-5.2.0.dist-info → meilisearch_python_sdk-5.3.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|