most-client 1.0.17__py3-none-any.whl → 1.0.18__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/api.py CHANGED
@@ -241,12 +241,19 @@ class MostClient(object):
241
241
  resp = self.get(f"https://api.the-most.ai/api/external/{self.client_id}/audio/{audio_id}/model/{self.model_id}/dialog")
242
242
  return self.retort.load(resp.json(), DialogResult)
243
243
 
244
- def export(self, audio_ids: List[str]) -> str:
244
+ def export(self, audio_ids: List[str],
245
+ aggregated_by: Optional[str] = None,
246
+ aggregation_title: Optional[str] = None) -> str:
247
+ if aggregation_title is None:
248
+ aggregation_title = aggregated_by
249
+
245
250
  if not is_valid_id(self.model_id):
246
251
  raise RuntimeError("Please choose valid model to apply. [try list_models()]")
247
252
 
248
253
  resp = self.get(f"https://api.the-most.ai/api/external/{self.client_id}/model/{self.model_id}/export",
249
- params={'audio_ids': ','.join(audio_ids)})
254
+ params={'audio_ids': ','.join(audio_ids),
255
+ 'aggregated_by': aggregated_by,
256
+ 'aggregation_title': aggregation_title})
250
257
  return resp.url
251
258
 
252
259
  def store_info(self,
most/async_api.py CHANGED
@@ -250,12 +250,19 @@ class AsyncMostClient(object):
250
250
  resp = await self.get(f"https://api.the-most.ai/api/external/{self.client_id}/audio/{audio_id}/model/{self.model_id}/dialog")
251
251
  return self.retort.load(resp.json(), DialogResult)
252
252
 
253
- async def export(self, audio_ids: List[str]) -> str:
253
+ async def export(self, audio_ids: List[str],
254
+ aggregated_by: Optional[str] = None,
255
+ aggregation_title: Optional[str] = None) -> str:
256
+ if aggregation_title is None:
257
+ aggregation_title = aggregated_by
258
+
254
259
  if not is_valid_id(self.model_id):
255
260
  raise RuntimeError("Please choose valid model to apply. [try list_models()]")
256
261
 
257
262
  resp = await self.get(f"https://api.the-most.ai/api/external/{self.client_id}/model/{self.model_id}/export",
258
- params={'audio_ids': ','.join(audio_ids)})
263
+ params={'audio_ids': ','.join(audio_ids),
264
+ "aggregated_by": aggregated_by,
265
+ "aggregation_title": aggregation_title})
259
266
  return resp.next_request.url
260
267
 
261
268
  async def store_info(self,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: most-client
3
- Version: 1.0.17
3
+ Version: 1.0.18
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
@@ -0,0 +1,9 @@
1
+ most/__init__.py,sha256=62uFFeM_1VVR83K3bTYWK3PEoqnmFCy9aWYerQ6U4Ds,67
2
+ most/api.py,sha256=IvgklvaP9fvcr_fy-gGvnEDWcyxPRTxNN0MO492YgT0,12101
3
+ most/async_api.py,sha256=tFFLTWhGVexVz5v9hYuNp4BqFEWTNSp_6DLSAQBjF9c,12858
4
+ most/types.py,sha256=apUz6FHFAHWJNVvRh57wVQk5DFw2XKnLLhkAyWgtvfw,2825
5
+ most_client-1.0.18.dist-info/METADATA,sha256=bJfi-Nsqkp3oHirr417vvUtJgo79AzaCOqsBUSUJq58,1027
6
+ most_client-1.0.18.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
7
+ most_client-1.0.18.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
8
+ most_client-1.0.18.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
9
+ most_client-1.0.18.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- most/__init__.py,sha256=62uFFeM_1VVR83K3bTYWK3PEoqnmFCy9aWYerQ6U4Ds,67
2
- most/api.py,sha256=yRGL7lZ5qBWSdaclz-t7fZAJ_k1zu0YbHptUX9uaVdM,11772
3
- most/async_api.py,sha256=xRZPsb64i1d_U0PWIJKC_7fPMjZRPfamvvtSMyFlA5E,12505
4
- most/types.py,sha256=apUz6FHFAHWJNVvRh57wVQk5DFw2XKnLLhkAyWgtvfw,2825
5
- most_client-1.0.17.dist-info/METADATA,sha256=51ED0zyrdWP5OqTlY31mCcXRpBmk39y1BXNWJYx2BMY,1027
6
- most_client-1.0.17.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
7
- most_client-1.0.17.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
8
- most_client-1.0.17.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
9
- most_client-1.0.17.dist-info/RECORD,,