most-client 1.0.7__py3-none-any.whl → 1.0.8__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
@@ -174,13 +174,21 @@ class MostClient(object):
174
174
  resp = self.get(f"https://api.the-most.ai/api/external/{self.client_id}/audio/{audio_id}/model/{self.model_id}/results")
175
175
  return self.retort.load(resp.json(), Result)
176
176
 
177
- def fetch_text(self, audio_id) -> Result:
177
+ def fetch_text(self, audio_id: str) -> Result:
178
178
  if self.model_id is None:
179
179
  raise RuntimeError("Please choose a model to apply. [try list_models()]")
180
180
 
181
181
  resp = self.get(f"https://api.the-most.ai/api/external/{self.client_id}/audio/{audio_id}/model/{self.model_id}/text")
182
182
  return self.retort.load(resp.json(), Result)
183
183
 
184
+ def export(self, audio_ids: List[str]) -> str:
185
+ if self.model_id is None:
186
+ raise RuntimeError("Please choose a model to apply. [try list_models()]")
187
+
188
+ resp = self.get(f"https://api.the-most.ai/api/external/{self.client_id}/model/{self.model_id}/export",
189
+ params={'audio_ids': ','.join(audio_ids)})
190
+ return resp.url
191
+
184
192
  def __call__(self, audio_path: Path):
185
193
  audio = self.upload_audio(audio_path)
186
194
  return self.apply(audio.id)
most/async_api.py CHANGED
@@ -188,6 +188,14 @@ class AsyncMostClient(object):
188
188
  resp = await self.get(f"https://api.the-most.ai/api/external/{self.client_id}/audio/{audio_id}/model/{self.model_id}/text")
189
189
  return self.retort.load(resp.json(), Result)
190
190
 
191
+ async def export(self, audio_ids: List[str]) -> str:
192
+ if self.model_id is None:
193
+ raise RuntimeError("Please choose a model to apply. [try list_models()]")
194
+
195
+ resp = await self.get(f"https://api.the-most.ai/api/external/{self.client_id}/model/{self.model_id}/export",
196
+ params={'audio_ids': ','.join(audio_ids)})
197
+ return resp.next_request.url
198
+
191
199
  async def __call__(self, audio_path: Path):
192
200
  audio = await self.upload_audio(audio_path)
193
201
  return await self.apply(audio.id)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: most-client
3
- Version: 1.0.7
3
+ Version: 1.0.8
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
@@ -16,7 +16,7 @@ Requires-Dist: requests
16
16
  Requires-Dist: wheel
17
17
  Requires-Dist: adaptix
18
18
  Requires-Dist: json5
19
- Requires-Dist: dataclasses-json
19
+ Requires-Dist: dataclasses_json
20
20
  Requires-Dist: black
21
21
  Requires-Dist: coverage
22
22
  Requires-Dist: flake8
@@ -26,4 +26,3 @@ Requires-Dist: pytest
26
26
  Requires-Dist: tox
27
27
  Requires-Dist: twine
28
28
  Requires-Dist: httpx
29
-
@@ -0,0 +1,9 @@
1
+ most/__init__.py,sha256=62uFFeM_1VVR83K3bTYWK3PEoqnmFCy9aWYerQ6U4Ds,67
2
+ most/api.py,sha256=ZM5wLJGfMoL8UYOxvZU4EZYmpeqmP5BKz1zEQhxeAS4,8161
3
+ most/async_api.py,sha256=QD2wGay57S7afHXqhhC9Pq2P0vIC8tJ6vrIz8xbvfjM,8753
4
+ most/types.py,sha256=xtKsXbO40AgLIgTf-YndJnT2yfTlCl-p-j3M1CMBB8k,1377
5
+ most_client-1.0.8.dist-info/METADATA,sha256=0_NfZJ8wCe9mFm7HXtkxFBNP0rR__M_oSCiHdzCtDBE,863
6
+ most_client-1.0.8.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
7
+ most_client-1.0.8.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
8
+ most_client-1.0.8.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
9
+ most_client-1.0.8.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.45.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
Binary file
Binary file
Binary file
Binary file
@@ -1,13 +0,0 @@
1
- most/__init__.py,sha256=62uFFeM_1VVR83K3bTYWK3PEoqnmFCy9aWYerQ6U4Ds,67
2
- most/api.py,sha256=-vs2oUAxS4D7r6pT3gLDLCFKGFq8KYMHK8J4OZiT_lo,7781
3
- most/async_api.py,sha256=8ygKjUzBXNyO3EX4WiPwVCMlfwhPJLIcCtlR6DaYABk,8347
4
- most/types.py,sha256=xtKsXbO40AgLIgTf-YndJnT2yfTlCl-p-j3M1CMBB8k,1377
5
- most/__pycache__/__init__.cpython-310.pyc,sha256=uRCbA8tXEFLxmAlpQAF8Vdh8AZbpR52RSrGOfKRxpAQ,229
6
- most/__pycache__/api.cpython-310.pyc,sha256=YuMpKt9DwpvUgXH2qPKMVbJxwgkTLrp9wso73MA3jkM,6582
7
- most/__pycache__/async_api.cpython-310.pyc,sha256=d4RQJ-yhe9rbMjjU_7IyeK0lRB7WalIdXpXRxz-Db4A,7328
8
- most/__pycache__/types.cpython-310.pyc,sha256=B3tij9LD4YJAXWiC3VHtnkVzpw5QRirrHpDMD-vekII,1861
9
- most_client-1.0.7.dist-info/METADATA,sha256=998XxFnZjTTpsyjTvJiQ9mwwkWCLDjf8V9o6N_yOJXQ,864
10
- most_client-1.0.7.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
11
- most_client-1.0.7.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
12
- most_client-1.0.7.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
13
- most_client-1.0.7.dist-info/RECORD,,