meilisearch-python-sdk 3.0.0__tar.gz → 3.0.1__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.
Potentially problematic release.
This version of meilisearch-python-sdk might be problematic. Click here for more details.
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/PKG-INFO +1 -1
- meilisearch_python_sdk-3.0.1/meilisearch_python_sdk/_version.py +1 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/index.py +21 -17
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/models/search.py +3 -1
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/pyproject.toml +2 -2
- meilisearch_python_sdk-3.0.0/meilisearch_python_sdk/_version.py +0 -1
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/LICENSE +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/README.md +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/__init__.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/_client.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/_http_requests.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/_task.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/_utils.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/decorators.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/errors.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/json_handler.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/models/__init__.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/models/client.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/models/documents.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/models/health.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/models/index.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/models/settings.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/models/task.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/models/version.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/plugins.py +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/py.typed +0 -0
- {meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/types.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = "3.0.1"
|
{meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/index.py
RENAMED
|
@@ -759,7 +759,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
759
759
|
highlight_pre_tag: str = "<em>",
|
|
760
760
|
highlight_post_tag: str = "</em>",
|
|
761
761
|
crop_marker: str = "...",
|
|
762
|
-
matching_strategy:
|
|
762
|
+
matching_strategy: Literal["all", "last", "frequency"] = "last",
|
|
763
763
|
hits_per_page: int | None = None,
|
|
764
764
|
page: int | None = None,
|
|
765
765
|
attributes_to_search_on: list[str] | None = None,
|
|
@@ -785,13 +785,14 @@ class AsyncIndex(_BaseIndex):
|
|
|
785
785
|
attributes_to_highlight: Attributes whose values will contain highlighted matching terms.
|
|
786
786
|
Defaults to None.
|
|
787
787
|
sort: Attributes by which to sort the results. Defaults to None.
|
|
788
|
-
show_matches_position: Defines whether an object that contains information about the
|
|
789
|
-
returned or not. Defaults to False.
|
|
788
|
+
show_matches_position: Defines whether an object that contains information about the
|
|
789
|
+
matches should be returned or not. Defaults to False.
|
|
790
790
|
highlight_pre_tag: The opening tag for highlighting text. Defaults to <em>.
|
|
791
791
|
highlight_post_tag: The closing tag for highlighting text. Defaults to </em>
|
|
792
792
|
crop_marker: Marker to display when the number of words excedes the `crop_length`.
|
|
793
793
|
Defaults to ...
|
|
794
|
-
matching_strategy: Specifies the matching strategy Meilisearch should use. Defaults to
|
|
794
|
+
matching_strategy: Specifies the matching strategy Meilisearch should use. Defaults to
|
|
795
|
+
`last`.
|
|
795
796
|
hits_per_page: Sets the number of results returned per page.
|
|
796
797
|
page: Sets the specific results page to fetch.
|
|
797
798
|
attributes_to_search_on: List of field names. Allow search over a subset of searchable
|
|
@@ -1017,7 +1018,7 @@ class AsyncIndex(_BaseIndex):
|
|
|
1017
1018
|
highlight_pre_tag: str = "<em>",
|
|
1018
1019
|
highlight_post_tag: str = "</em>",
|
|
1019
1020
|
crop_marker: str = "...",
|
|
1020
|
-
matching_strategy: Literal["all", "last", "frequency"] = "
|
|
1021
|
+
matching_strategy: Literal["all", "last", "frequency"] = "last",
|
|
1021
1022
|
hits_per_page: int | None = None,
|
|
1022
1023
|
page: int | None = None,
|
|
1023
1024
|
attributes_to_search_on: list[str] | None = None,
|
|
@@ -1044,13 +1045,14 @@ class AsyncIndex(_BaseIndex):
|
|
|
1044
1045
|
attributes_to_highlight: Attributes whose values will contain highlighted matching terms.
|
|
1045
1046
|
Defaults to None.
|
|
1046
1047
|
sort: Attributes by which to sort the results. Defaults to None.
|
|
1047
|
-
show_matches_position: Defines whether an object that contains information about the
|
|
1048
|
-
returned or not. Defaults to False.
|
|
1048
|
+
show_matches_position: Defines whether an object that contains information about the
|
|
1049
|
+
matches should be returned or not. Defaults to False.
|
|
1049
1050
|
highlight_pre_tag: The opening tag for highlighting text. Defaults to <em>.
|
|
1050
1051
|
highlight_post_tag: The closing tag for highlighting text. Defaults to </em>
|
|
1051
1052
|
crop_marker: Marker to display when the number of words excedes the `crop_length`.
|
|
1052
1053
|
Defaults to ...
|
|
1053
|
-
matching_strategy: Specifies the matching strategy Meilisearch should use. Defaults to
|
|
1054
|
+
matching_strategy: Specifies the matching strategy Meilisearch should use. Defaults to
|
|
1055
|
+
`last`.
|
|
1054
1056
|
hits_per_page: Sets the number of results returned per page.
|
|
1055
1057
|
page: Sets the specific results page to fetch.
|
|
1056
1058
|
attributes_to_search_on: List of field names. Allow search over a subset of searchable
|
|
@@ -5027,7 +5029,7 @@ class Index(_BaseIndex):
|
|
|
5027
5029
|
highlight_pre_tag: str = "<em>",
|
|
5028
5030
|
highlight_post_tag: str = "</em>",
|
|
5029
5031
|
crop_marker: str = "...",
|
|
5030
|
-
matching_strategy: Literal["all", "last", "frequency"] = "
|
|
5032
|
+
matching_strategy: Literal["all", "last", "frequency"] = "last",
|
|
5031
5033
|
hits_per_page: int | None = None,
|
|
5032
5034
|
page: int | None = None,
|
|
5033
5035
|
attributes_to_search_on: list[str] | None = None,
|
|
@@ -5053,13 +5055,14 @@ class Index(_BaseIndex):
|
|
|
5053
5055
|
attributes_to_highlight: Attributes whose values will contain highlighted matching terms.
|
|
5054
5056
|
Defaults to None.
|
|
5055
5057
|
sort: Attributes by which to sort the results. Defaults to None.
|
|
5056
|
-
show_matches_position: Defines whether an object that contains information about the
|
|
5057
|
-
returned or not. Defaults to False.
|
|
5058
|
+
show_matches_position: Defines whether an object that contains information about the
|
|
5059
|
+
matches should be returned or not. Defaults to False.
|
|
5058
5060
|
highlight_pre_tag: The opening tag for highlighting text. Defaults to <em>.
|
|
5059
5061
|
highlight_post_tag: The closing tag for highlighting text. Defaults to </em>
|
|
5060
5062
|
crop_marker: Marker to display when the number of words excedes the `crop_length`.
|
|
5061
5063
|
Defaults to ...
|
|
5062
|
-
matching_strategy: Specifies the matching strategy Meilisearch should use. Defaults to
|
|
5064
|
+
matching_strategy: Specifies the matching strategy Meilisearch should use. Defaults to
|
|
5065
|
+
`last`.
|
|
5063
5066
|
hits_per_page: Sets the number of results returned per page.
|
|
5064
5067
|
page: Sets the specific results page to fetch.
|
|
5065
5068
|
attributes_to_search_on: List of field names. Allow search over a subset of searchable
|
|
@@ -5193,7 +5196,7 @@ class Index(_BaseIndex):
|
|
|
5193
5196
|
highlight_pre_tag: str = "<em>",
|
|
5194
5197
|
highlight_post_tag: str = "</em>",
|
|
5195
5198
|
crop_marker: str = "...",
|
|
5196
|
-
matching_strategy:
|
|
5199
|
+
matching_strategy: Literal["all", "last", "frequency"] = "last",
|
|
5197
5200
|
hits_per_page: int | None = None,
|
|
5198
5201
|
page: int | None = None,
|
|
5199
5202
|
attributes_to_search_on: list[str] | None = None,
|
|
@@ -5220,13 +5223,14 @@ class Index(_BaseIndex):
|
|
|
5220
5223
|
attributes_to_highlight: Attributes whose values will contain highlighted matching terms.
|
|
5221
5224
|
Defaults to None.
|
|
5222
5225
|
sort: Attributes by which to sort the results. Defaults to None.
|
|
5223
|
-
show_matches_position: Defines whether an object that contains information about the
|
|
5224
|
-
returned or not. Defaults to False.
|
|
5226
|
+
show_matches_position: Defines whether an object that contains information about the
|
|
5227
|
+
matches should be returned or not. Defaults to False.
|
|
5225
5228
|
highlight_pre_tag: The opening tag for highlighting text. Defaults to <em>.
|
|
5226
5229
|
highlight_post_tag: The closing tag for highlighting text. Defaults to </em>
|
|
5227
5230
|
crop_marker: Marker to display when the number of words excedes the `crop_length`.
|
|
5228
5231
|
Defaults to ...
|
|
5229
|
-
matching_strategy: Specifies the matching strategy Meilisearch should use. Defaults to
|
|
5232
|
+
matching_strategy: Specifies the matching strategy Meilisearch should use. Defaults to
|
|
5233
|
+
`last`.
|
|
5230
5234
|
hits_per_page: Sets the number of results returned per page.
|
|
5231
5235
|
page: Sets the specific results page to fetch.
|
|
5232
5236
|
attributes_to_search_on: List of field names. Allow search over a subset of searchable
|
|
@@ -8196,7 +8200,7 @@ def _process_search_parameters(
|
|
|
8196
8200
|
highlight_pre_tag: str = "<em>",
|
|
8197
8201
|
highlight_post_tag: str = "</em>",
|
|
8198
8202
|
crop_marker: str = "...",
|
|
8199
|
-
matching_strategy:
|
|
8203
|
+
matching_strategy: Literal["all", "last", "frequency"] = "last",
|
|
8200
8204
|
hits_per_page: int | None = None,
|
|
8201
8205
|
page: int | None = None,
|
|
8202
8206
|
attributes_to_search_on: list[str] | None = None,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
from typing import Literal
|
|
4
|
+
|
|
3
5
|
import pydantic
|
|
4
6
|
from camel_converter.pydantic_base import CamelBase
|
|
5
7
|
|
|
@@ -39,7 +41,7 @@ class SearchParams(CamelBase):
|
|
|
39
41
|
highlight_pre_tag: str = "<em>"
|
|
40
42
|
highlight_post_tag: str = "</em>"
|
|
41
43
|
crop_marker: str = "..."
|
|
42
|
-
matching_strategy:
|
|
44
|
+
matching_strategy: Literal["all", "last", "frequency"] = "last"
|
|
43
45
|
hits_per_page: int | None = None
|
|
44
46
|
page: int | None = None
|
|
45
47
|
attributes_to_search_on: list[str] | None = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "meilisearch-python-sdk"
|
|
3
|
-
version = "3.0.
|
|
3
|
+
version = "3.0.1"
|
|
4
4
|
description = "A Python client providing both async and sync support for the Meilisearch API"
|
|
5
5
|
authors = ["Paul Sanders <psanders1@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -43,7 +43,7 @@ mkdocs = "1.6.0"
|
|
|
43
43
|
mkdocs-material = "9.5.30"
|
|
44
44
|
mkdocstrings = {version = "0.25.2", extras = ["python"]}
|
|
45
45
|
mypy = "1.11.0"
|
|
46
|
-
pre-commit = "3.
|
|
46
|
+
pre-commit = "3.8.0"
|
|
47
47
|
pytest = "8.3.2"
|
|
48
48
|
pytest-cov = "5.0.0"
|
|
49
49
|
pytest-asyncio = "0.23.8"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = "3.0.0"
|
|
File without changes
|
|
File without changes
|
{meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/__init__.py
RENAMED
|
File without changes
|
{meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/_task.py
RENAMED
|
File without changes
|
{meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/_utils.py
RENAMED
|
File without changes
|
{meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/decorators.py
RENAMED
|
File without changes
|
{meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/errors.py
RENAMED
|
File without changes
|
{meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/json_handler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/models/index.py
RENAMED
|
File without changes
|
|
File without changes
|
{meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/models/task.py
RENAMED
|
File without changes
|
|
File without changes
|
{meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/plugins.py
RENAMED
|
File without changes
|
{meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/py.typed
RENAMED
|
File without changes
|
{meilisearch_python_sdk-3.0.0 → meilisearch_python_sdk-3.0.1}/meilisearch_python_sdk/types.py
RENAMED
|
File without changes
|