most-client 1.0.34__py3-none-any.whl → 1.0.35__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
@@ -213,8 +213,12 @@ class MostClient(object):
213
213
 
214
214
  def list_audios(self,
215
215
  offset: int = 0,
216
- limit: int = 10) -> List[Audio]:
217
- resp = self.get(f"/{self.client_id}/list?offset={offset}&limit={limit}")
216
+ limit: int = 10,
217
+ query: Optional[Dict[str, str]] = None) -> List[Audio]:
218
+ if query is None:
219
+ query = {}
220
+ resp = self.get(f"/{self.client_id}/list?offset={offset}&limit={limit}",
221
+ params=query)
218
222
  audio_list = resp.json()
219
223
  return self.retort.load(audio_list, List[Audio])
220
224
 
most/async_api.py CHANGED
@@ -223,8 +223,12 @@ class AsyncMostClient(object):
223
223
 
224
224
  async def list_audios(self,
225
225
  offset: int = 0,
226
- limit: int = 10) -> List[Audio]:
227
- resp = await self.get(f"/{self.client_id}/list?offset={offset}&limit={limit}")
226
+ limit: int = 10,
227
+ query: Optional[Dict[str, str]] = None) -> List[Audio]:
228
+ if query is None:
229
+ query = {}
230
+ resp = await self.get(f"/{self.client_id}/list?offset={offset}&limit={limit}",
231
+ params=query)
228
232
  audio_list = resp.json()
229
233
  return self.retort.load(audio_list, List[Audio])
230
234
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: most-client
3
- Version: 1.0.34
3
+ Version: 1.0.35
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
@@ -1,13 +1,13 @@
1
1
  most/__init__.py,sha256=b0EXXaPA4kmt-FtGXKRWZr7SCwjipMLcpC6uT5WRIdY,144
2
2
  most/_constrants.py,sha256=SlHKcBoXwe_sPzk8tdbb7lqhQz-Bfo__FhSoeFWodZE,217
3
- most/api.py,sha256=x5UxoAbB0Qt3_lTOzdHlYw2pXYloNuVonZBvzTavMEY,18794
4
- most/async_api.py,sha256=uSfdZuWCdPr05JiO2hJ9HraF0uFRiRSPTYVYuUZLCDQ,19973
3
+ most/api.py,sha256=U9Q0-x-6QeJySAw7QWyGloMVXp0jrvAmF7xuH9-T99o,18941
4
+ most/async_api.py,sha256=ROg08ACUc-kI95qOA_agRfLlYHijSh0Oo-Fdnl_iafY,20132
5
5
  most/async_trainer_api.py,sha256=99rED8RjnOn8VezeEgrTgoVfQrO7DdmOE2Jajumno2g,1052
6
6
  most/score_calculation.py,sha256=1XU1LfIH5LSCwAbAaKkr-EjH5qOTXrJKOUvhCCawka4,1054
7
7
  most/trainer_api.py,sha256=ZwOv4mhROfY97n6i7IY_ZpafsuNRazOqMBAf2dh708k,992
8
8
  most/types.py,sha256=KP34dzS8ayQUhToIxwxTL9O8-7TZz1ySfJzA3ZNGIGw,4921
9
- most_client-1.0.34.dist-info/METADATA,sha256=lXV6C4WpGopoL9cZPWrJKfd84aNCKRF2xbiVlizuR9A,1027
10
- most_client-1.0.34.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
11
- most_client-1.0.34.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
12
- most_client-1.0.34.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
13
- most_client-1.0.34.dist-info/RECORD,,
9
+ most_client-1.0.35.dist-info/METADATA,sha256=eiFUuyofW9ALjVlh9qV-Vn_yesaxeA_MBiiUj94e-Ak,1027
10
+ most_client-1.0.35.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
11
+ most_client-1.0.35.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
12
+ most_client-1.0.35.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
13
+ most_client-1.0.35.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (79.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5