most-client 1.0.5__py3-none-any.whl → 1.0.6__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/types.py +18 -9
- {most_client-1.0.5.dist-info → most_client-1.0.6.dist-info}/METADATA +1 -1
- {most_client-1.0.5.dist-info → most_client-1.0.6.dist-info}/RECORD +6 -6
- {most_client-1.0.5.dist-info → most_client-1.0.6.dist-info}/WHEEL +0 -0
- {most_client-1.0.5.dist-info → most_client-1.0.6.dist-info}/top_level.txt +0 -0
- {most_client-1.0.5.dist-info → most_client-1.0.6.dist-info}/zip-safe +0 -0
most/types.py
CHANGED
@@ -25,15 +25,6 @@ class ColumnResult(DataClassJsonMixin):
|
|
25
25
|
subcolumns: List[SubcolumnResult]
|
26
26
|
|
27
27
|
|
28
|
-
@dataclass_json
|
29
|
-
@dataclass
|
30
|
-
class Result(DataClassJsonMixin):
|
31
|
-
id: str
|
32
|
-
text: Optional[str]
|
33
|
-
url: Optional[str]
|
34
|
-
results: Optional[List[ColumnResult]]
|
35
|
-
|
36
|
-
|
37
28
|
@dataclass_json
|
38
29
|
@dataclass
|
39
30
|
class Column(DataClassJsonMixin):
|
@@ -51,3 +42,21 @@ class Script(DataClassJsonMixin):
|
|
51
42
|
@dataclass
|
52
43
|
class JobStatus(DataClassJsonMixin):
|
53
44
|
status: Literal["not_found", "pending", "completed", "error"]
|
45
|
+
|
46
|
+
|
47
|
+
@dataclass_json
|
48
|
+
@dataclass
|
49
|
+
class Result(DataClassJsonMixin):
|
50
|
+
id: str
|
51
|
+
text: Optional[str]
|
52
|
+
url: Optional[str]
|
53
|
+
results: Optional[List[ColumnResult]]
|
54
|
+
|
55
|
+
def get_script(self) -> Optional[Script]:
|
56
|
+
if self.results is None:
|
57
|
+
return None
|
58
|
+
|
59
|
+
return Script(columns=[Column(name=column_result.name,
|
60
|
+
subcolumns=[subcolumn_result.name
|
61
|
+
for subcolumn_result in column_result.subcolumns])
|
62
|
+
for column_result in self.results])
|
@@ -1,13 +1,13 @@
|
|
1
1
|
most/__init__.py,sha256=62uFFeM_1VVR83K3bTYWK3PEoqnmFCy9aWYerQ6U4Ds,67
|
2
2
|
most/api.py,sha256=35SmN9BhZRUQZMH400MYh0LAHgYK8d_25at5BaBihIw,7641
|
3
3
|
most/async_api.py,sha256=QTQ2RdLeI2GzB6EvlrRnpoqs9XBOR64drVTpulvGrFI,8336
|
4
|
-
most/types.py,sha256=
|
4
|
+
most/types.py,sha256=xtKsXbO40AgLIgTf-YndJnT2yfTlCl-p-j3M1CMBB8k,1377
|
5
5
|
most/__pycache__/__init__.cpython-310.pyc,sha256=uRCbA8tXEFLxmAlpQAF8Vdh8AZbpR52RSrGOfKRxpAQ,229
|
6
6
|
most/__pycache__/api.cpython-310.pyc,sha256=YuMpKt9DwpvUgXH2qPKMVbJxwgkTLrp9wso73MA3jkM,6582
|
7
7
|
most/__pycache__/async_api.cpython-310.pyc,sha256=d4RQJ-yhe9rbMjjU_7IyeK0lRB7WalIdXpXRxz-Db4A,7328
|
8
8
|
most/__pycache__/types.cpython-310.pyc,sha256=B3tij9LD4YJAXWiC3VHtnkVzpw5QRirrHpDMD-vekII,1861
|
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.6.dist-info/METADATA,sha256=SLqGtvyjFNtkSOw3o7RNVS9Ur0fy5HRzz_8gGN_85Bs,864
|
10
|
+
most_client-1.0.6.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
|
11
|
+
most_client-1.0.6.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
|
12
|
+
most_client-1.0.6.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
13
|
+
most_client-1.0.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|