metaso-sdk 0.1.1__py3-none-any.whl → 0.1.4__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.
metaso_sdk/model.py CHANGED
@@ -16,6 +16,7 @@ class Query(BaseModel):
16
16
  topicId: Optional[str] = None
17
17
  searchTopicId: Optional[str] = None
18
18
  enableMix: bool = False
19
+ newEngine: bool = False
19
20
 
20
21
 
21
22
  class Topic(BaseModel):
metaso_sdk/subject.py CHANGED
@@ -54,7 +54,10 @@ def update_progress(file: File) -> File:
54
54
  :return: 更新后的文件对象。
55
55
  """
56
56
  resp = client.get(f"/file/{file.id}/progress")
57
- file.progress = resp.json()["data"]
57
+ json = resp.json()
58
+ status = Status.model_validate(json)
59
+ if status.errCode == 0:
60
+ file.progress = json["data"]
58
61
  return file
59
62
 
60
63
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: metaso-sdk
3
- Version: 0.1.1
3
+ Version: 0.1.4
4
4
  Summary: The official Python SDK for https://metaso.cn
5
5
  Author-Email: Zhao Xiaohong <zhaoxiaohong@metasota.ai>
6
6
  License: MIT
@@ -1,14 +1,14 @@
1
- metaso_sdk-0.1.1.dist-info/METADATA,sha256=jIgauQfuMcfubvUJA09YbUEoLVcjWnaB6trQmfczAXY,3270
2
- metaso_sdk-0.1.1.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- metaso_sdk-0.1.1.dist-info/entry_points.txt,sha256=VqvzYeWOYZKCpogIumetYL8h5UZsI93oLI15kJjbwj4,63
4
- metaso_sdk-0.1.1.dist-info/licenses/LICENSE,sha256=7nWd1jm_pniRaOJtzgZnzECn_eeGLoPMvPTjCyRpj1A,1065
1
+ metaso_sdk-0.1.4.dist-info/METADATA,sha256=Ci3lD-LlXIN7M48tAwsDkqfBqq-p96JzfzR47YYTFu8,3270
2
+ metaso_sdk-0.1.4.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ metaso_sdk-0.1.4.dist-info/entry_points.txt,sha256=VqvzYeWOYZKCpogIumetYL8h5UZsI93oLI15kJjbwj4,63
4
+ metaso_sdk-0.1.4.dist-info/licenses/LICENSE,sha256=7nWd1jm_pniRaOJtzgZnzECn_eeGLoPMvPTjCyRpj1A,1065
5
5
  metaso_sdk/__init__.py,sha256=wP088gdhNJt1byFsSYest-ucQJdwosorwaG7FqCyqwE,510
6
6
  metaso_sdk/__main__.py,sha256=WCRS7Ehbf26-NWDSnt-Zmy0eP63paf67q9eYV4V_Q3g,345
7
7
  metaso_sdk/cli.py,sha256=Z7I54ojBpWxQ_Pce7-XM7gucneDIpC21yAqRGkYrm9I,1734
8
8
  metaso_sdk/client.py,sha256=j2hC1NBbxsRFHC4hOSD06YrfV5JLffgrA-H5iGNBPq4,204
9
9
  metaso_sdk/debug.py,sha256=K3ypLgs78a8bhiAHE_5fZZAL-U622fuKPyEdL7M1UW8,2831
10
- metaso_sdk/model.py,sha256=1QapIO4tEp2DfZ0bLL-GE6cwxXKK_XrQuINWltG8IQM,702
10
+ metaso_sdk/model.py,sha256=Y-8Gn_9K4lbtqhiGVs796hB3UXMfgUALAFOjwJXiwDQ,730
11
11
  metaso_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  metaso_sdk/search.py,sha256=3iA9lIncpAcbPHPby0XnTYaYvhM2983bEOBa40Nu_kY,1082
13
- metaso_sdk/subject.py,sha256=0CsDo1PRZlagR4GKLDbJXvK2Q6qFAd4_3VV8NTNYPeE,2877
14
- metaso_sdk-0.1.1.dist-info/RECORD,,
13
+ metaso_sdk/subject.py,sha256=qJBSn5LimFJ1df4sEWnp4or1rQlAGq-nWdPjac_heq4,2966
14
+ metaso_sdk-0.1.4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: pdm-backend (2.4.3)
2
+ Generator: pdm-backend (2.4.4)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any