most-client 1.0.39__py3-none-any.whl → 1.0.41__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.
- most/async_api.py +0 -2
- most/search_types.py +10 -4
- {most_client-1.0.39.dist-info → most_client-1.0.41.dist-info}/METADATA +1 -1
- {most_client-1.0.39.dist-info → most_client-1.0.41.dist-info}/RECORD +7 -7
- {most_client-1.0.39.dist-info → most_client-1.0.41.dist-info}/WHEEL +1 -1
- {most_client-1.0.39.dist-info → most_client-1.0.41.dist-info}/top_level.txt +0 -0
- {most_client-1.0.39.dist-info → most_client-1.0.41.dist-info}/zip-safe +0 -0
most/async_api.py
CHANGED
@@ -112,8 +112,6 @@ class AsyncMostClient(object):
|
|
112
112
|
|
113
113
|
def with_model(self, model_id):
|
114
114
|
client = self.clone()
|
115
|
-
if not is_valid_id(self.model_id):
|
116
|
-
raise RuntimeError("Please choose valid model to apply. [try list_models()]")
|
117
115
|
client.model_id = model_id
|
118
116
|
client.score_modifier = None
|
119
117
|
return client
|
most/search_types.py
CHANGED
@@ -25,6 +25,12 @@ class DurationCondition(DataClassJsonMixin):
|
|
25
25
|
less_than: Optional[int] = None
|
26
26
|
|
27
27
|
|
28
|
+
@dataclass_json
|
29
|
+
@dataclass
|
30
|
+
class TagsCondition(DataClassJsonMixin):
|
31
|
+
in_set: Optional[List[str]] = None
|
32
|
+
|
33
|
+
|
28
34
|
@dataclass_json
|
29
35
|
@dataclass
|
30
36
|
class StoredInfoCondition(DataClassJsonMixin):
|
@@ -135,7 +141,7 @@ class ResultsCondition(DataClassJsonMixin):
|
|
135
141
|
@dataclass_json
|
136
142
|
@dataclass
|
137
143
|
class SearchParams(DataClassJsonMixin):
|
138
|
-
must: List[StoredInfoCondition | ResultsCondition | DurationCondition | ChannelsCondition | IDCondition ] = field(default_factory=list)
|
139
|
-
should: List[StoredInfoCondition | ResultsCondition | DurationCondition | ChannelsCondition | IDCondition ] = field(default_factory=list)
|
140
|
-
must_not: List[StoredInfoCondition | ResultsCondition | DurationCondition | ChannelsCondition | IDCondition ] = field(default_factory=list)
|
141
|
-
should_not: List[StoredInfoCondition | ResultsCondition | DurationCondition | ChannelsCondition | IDCondition ] = field(default_factory=list)
|
144
|
+
must: List[StoredInfoCondition | ResultsCondition | DurationCondition | ChannelsCondition | IDCondition | TagsCondition] = field(default_factory=list)
|
145
|
+
should: List[StoredInfoCondition | ResultsCondition | DurationCondition | ChannelsCondition | IDCondition | TagsCondition ] = field(default_factory=list)
|
146
|
+
must_not: List[StoredInfoCondition | ResultsCondition | DurationCondition | ChannelsCondition | IDCondition | TagsCondition ] = field(default_factory=list)
|
147
|
+
should_not: List[StoredInfoCondition | ResultsCondition | DurationCondition | ChannelsCondition | IDCondition | TagsCondition ] = field(default_factory=list)
|
@@ -1,16 +1,16 @@
|
|
1
1
|
most/__init__.py,sha256=yoPKMxjZYAzrVqZ7l9rN0Skh0HPuttPX7ub0wlZMby4,351
|
2
2
|
most/_constrants.py,sha256=SlHKcBoXwe_sPzk8tdbb7lqhQz-Bfo__FhSoeFWodZE,217
|
3
3
|
most/api.py,sha256=HmJSAwLVuy7uaeVAM3y1nd-F-UDZ2kOVww_i2EY0Sjs,19145
|
4
|
-
most/async_api.py,sha256=
|
4
|
+
most/async_api.py,sha256=CTUpju0byI_HdE_zw3OPrNfRW-TXpTtoCK0tt7iVkXY,20429
|
5
5
|
most/async_searcher.py,sha256=C0zViW20K7OhKO1BzBZktTbMJYBBvor3uK6LAHZTxz0,2238
|
6
6
|
most/async_trainer_api.py,sha256=99rED8RjnOn8VezeEgrTgoVfQrO7DdmOE2Jajumno2g,1052
|
7
7
|
most/score_calculation.py,sha256=vLtGqXrR43xZhGjrH5dpQZfWX1q3s74LvTaHn-SKBAg,3254
|
8
|
-
most/search_types.py,sha256=
|
8
|
+
most/search_types.py,sha256=NI4hK-ALJbyHW6ZhRGlGRVM6H2C2GsLNhQZb9YUMrnU,6854
|
9
9
|
most/searcher.py,sha256=9UdiSlScsE6EPc6RpK8xkRLeB5gHNxgPQpXTJ17i3lQ,2135
|
10
10
|
most/trainer_api.py,sha256=ZwOv4mhROfY97n6i7IY_ZpafsuNRazOqMBAf2dh708k,992
|
11
11
|
most/types.py,sha256=AU74VqYilM9DXfBwptliRbhV5urLAf4BygdIY3wlAN8,4309
|
12
|
-
most_client-1.0.
|
13
|
-
most_client-1.0.
|
14
|
-
most_client-1.0.
|
15
|
-
most_client-1.0.
|
16
|
-
most_client-1.0.
|
12
|
+
most_client-1.0.41.dist-info/METADATA,sha256=sr64VTdOACoMc6zx4ZiF1G5p9cYQQtth13xpZ5BeXnI,1027
|
13
|
+
most_client-1.0.41.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
14
|
+
most_client-1.0.41.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
|
15
|
+
most_client-1.0.41.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
16
|
+
most_client-1.0.41.dist-info/RECORD,,
|
File without changes
|
File without changes
|