most-client 1.0.39__tar.gz → 1.0.41__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.
Files changed (23) hide show
  1. {most_client-1.0.39/most_client.egg-info → most_client-1.0.41}/PKG-INFO +1 -1
  2. {most_client-1.0.39 → most_client-1.0.41}/most/async_api.py +0 -2
  3. {most_client-1.0.39 → most_client-1.0.41}/most/search_types.py +10 -4
  4. {most_client-1.0.39 → most_client-1.0.41/most_client.egg-info}/PKG-INFO +1 -1
  5. {most_client-1.0.39 → most_client-1.0.41}/setup.py +1 -1
  6. {most_client-1.0.39 → most_client-1.0.41}/MANIFEST.in +0 -0
  7. {most_client-1.0.39 → most_client-1.0.41}/README.md +0 -0
  8. {most_client-1.0.39 → most_client-1.0.41}/most/__init__.py +0 -0
  9. {most_client-1.0.39 → most_client-1.0.41}/most/_constrants.py +0 -0
  10. {most_client-1.0.39 → most_client-1.0.41}/most/api.py +0 -0
  11. {most_client-1.0.39 → most_client-1.0.41}/most/async_searcher.py +0 -0
  12. {most_client-1.0.39 → most_client-1.0.41}/most/async_trainer_api.py +0 -0
  13. {most_client-1.0.39 → most_client-1.0.41}/most/score_calculation.py +0 -0
  14. {most_client-1.0.39 → most_client-1.0.41}/most/searcher.py +0 -0
  15. {most_client-1.0.39 → most_client-1.0.41}/most/trainer_api.py +0 -0
  16. {most_client-1.0.39 → most_client-1.0.41}/most/types.py +0 -0
  17. {most_client-1.0.39 → most_client-1.0.41}/most_client.egg-info/SOURCES.txt +0 -0
  18. {most_client-1.0.39 → most_client-1.0.41}/most_client.egg-info/dependency_links.txt +0 -0
  19. {most_client-1.0.39 → most_client-1.0.41}/most_client.egg-info/requires.txt +0 -0
  20. {most_client-1.0.39 → most_client-1.0.41}/most_client.egg-info/top_level.txt +0 -0
  21. {most_client-1.0.39 → most_client-1.0.41}/most_client.egg-info/zip-safe +0 -0
  22. {most_client-1.0.39 → most_client-1.0.41}/requirements.txt +0 -0
  23. {most_client-1.0.39 → most_client-1.0.41}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: most-client
3
- Version: 1.0.39
3
+ Version: 1.0.41
4
4
  Summary: Most AI API for https://the-most.ai
5
5
  Home-page: https://github.com/the-most-ai/most-client
6
6
  Author: George Kasparyants
@@ -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
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: most-client
3
- Version: 1.0.39
3
+ Version: 1.0.41
4
4
  Summary: Most AI API for https://the-most.ai
5
5
  Home-page: https://github.com/the-most-ai/most-client
6
6
  Author: George Kasparyants
@@ -8,7 +8,7 @@ with open('requirements.txt', 'r') as f:
8
8
 
9
9
  setup(
10
10
  name='most-client',
11
- version='1.0.39',
11
+ version='1.0.41',
12
12
  python_requires=f'>=3.6',
13
13
  description='Most AI API for https://the-most.ai',
14
14
  url='https://github.com/the-most-ai/most-client',
File without changes
File without changes
File without changes
File without changes
File without changes