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 +6 -2
- most/async_api.py +6 -2
- {most_client-1.0.34.dist-info → most_client-1.0.35.dist-info}/METADATA +1 -1
- {most_client-1.0.34.dist-info → most_client-1.0.35.dist-info}/RECORD +7 -7
- {most_client-1.0.34.dist-info → most_client-1.0.35.dist-info}/WHEEL +1 -1
- {most_client-1.0.34.dist-info → most_client-1.0.35.dist-info}/top_level.txt +0 -0
- {most_client-1.0.34.dist-info → most_client-1.0.35.dist-info}/zip-safe +0 -0
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
|
217
|
-
|
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
|
227
|
-
|
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,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=
|
4
|
-
most/async_api.py,sha256=
|
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.
|
10
|
-
most_client-1.0.
|
11
|
-
most_client-1.0.
|
12
|
-
most_client-1.0.
|
13
|
-
most_client-1.0.
|
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,,
|
File without changes
|
File without changes
|