most-client 1.0.32__py3-none-any.whl → 1.0.33__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 +3 -3
- most/async_api.py +1 -1
- {most_client-1.0.32.dist-info → most_client-1.0.33.dist-info}/METADATA +1 -1
- {most_client-1.0.32.dist-info → most_client-1.0.33.dist-info}/RECORD +7 -7
- {most_client-1.0.32.dist-info → most_client-1.0.33.dist-info}/WHEEL +0 -0
- {most_client-1.0.32.dist-info → most_client-1.0.33.dist-info}/top_level.txt +0 -0
- {most_client-1.0.32.dist-info → most_client-1.0.33.dist-info}/zip-safe +0 -0
most/api.py
CHANGED
@@ -133,7 +133,7 @@ class MostClient(object):
|
|
133
133
|
headers=headers,
|
134
134
|
**kwargs)
|
135
135
|
if resp.status_code >= 400:
|
136
|
-
raise RuntimeError(resp.json()['message'] if resp.headers.get("Content-Type") == "application/json" else
|
136
|
+
raise RuntimeError(resp.json()['message'] if resp.headers.get("Content-Type") == "application/json" else resp.content)
|
137
137
|
return resp
|
138
138
|
|
139
139
|
def put(self, url, **kwargs):
|
@@ -151,7 +151,7 @@ class MostClient(object):
|
|
151
151
|
headers=headers,
|
152
152
|
**kwargs)
|
153
153
|
if resp.status_code >= 400:
|
154
|
-
raise RuntimeError(resp.json()['message'] if resp.headers.get("Content-Type") == "application/json" else
|
154
|
+
raise RuntimeError(resp.json()['message'] if resp.headers.get("Content-Type") == "application/json" else resp.content)
|
155
155
|
return resp
|
156
156
|
|
157
157
|
def post(self, url,
|
@@ -393,7 +393,7 @@ class MostClient(object):
|
|
393
393
|
})
|
394
394
|
return self.retort.load(resp.json(), StoredAudioData)
|
395
395
|
|
396
|
-
def fetch_info(self, audio_id: str) -> Dict[str, str]:
|
396
|
+
def fetch_info(self, audio_id: str) -> Dict[str, str | int | float]:
|
397
397
|
if not is_valid_id(audio_id):
|
398
398
|
raise RuntimeError("Please use valid audio_id. [try audio.id from list_audios()]")
|
399
399
|
|
most/async_api.py
CHANGED
@@ -400,7 +400,7 @@ class AsyncMostClient(object):
|
|
400
400
|
})
|
401
401
|
return self.retort.load(resp.json(), StoredAudioData)
|
402
402
|
|
403
|
-
async def fetch_info(self, audio_id: str) -> Dict[str, str]:
|
403
|
+
async def fetch_info(self, audio_id: str) -> Dict[str, str | int | float]:
|
404
404
|
if not is_valid_id(audio_id):
|
405
405
|
raise RuntimeError("Please use valid audio_id. [try audio.id from list_audios()]")
|
406
406
|
resp = await self.get(f"/{self.client_id}/audio/{audio_id}/info")
|
@@ -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=CYi_pPnIcN4WTK_0G8p6vfiBkRCrGtTZr6cts_7vof8,18808
|
4
|
+
most/async_api.py,sha256=whlKs9pf0qxtxM7KEuZkainSOoCbJg1WIzKpoK31lw8,19987
|
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.33.dist-info/METADATA,sha256=1ZO-LUpxm7-VtCs5c8sauTTOqlFJmCMVHg-RU0lNEcE,1027
|
10
|
+
most_client-1.0.33.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
11
|
+
most_client-1.0.33.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
|
12
|
+
most_client-1.0.33.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
13
|
+
most_client-1.0.33.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|