pybiolib 1.1.2133__py3-none-any.whl → 1.1.2138__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.
- biolib/_internal/types/__init__.py +4 -1
- biolib/_internal/types/app.py +9 -0
- biolib/_internal/types/data_record.py +20 -0
- biolib/_internal/types/experiment.py +10 -0
- biolib/_internal/types/resource.py +14 -0
- biolib/experiments/experiment.py +1 -1
- {pybiolib-1.1.2133.dist-info → pybiolib-1.1.2138.dist-info}/METADATA +1 -1
- {pybiolib-1.1.2133.dist-info → pybiolib-1.1.2138.dist-info}/RECORD +11 -8
- biolib/_internal/types/resources.py +0 -14
- {pybiolib-1.1.2133.dist-info → pybiolib-1.1.2138.dist-info}/LICENSE +0 -0
- {pybiolib-1.1.2133.dist-info → pybiolib-1.1.2138.dist-info}/WHEEL +0 -0
- {pybiolib-1.1.2133.dist-info → pybiolib-1.1.2138.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
from .typing import Dict, List, Optional, TypedDict
|
2
|
+
|
3
|
+
|
4
|
+
class DataRecordValidationRuleDict(TypedDict):
|
5
|
+
path: str
|
6
|
+
type: str
|
7
|
+
rule: Dict
|
8
|
+
|
9
|
+
|
10
|
+
class DataRecordTypeDict(TypedDict):
|
11
|
+
name: str
|
12
|
+
validation_rules: List[Dict]
|
13
|
+
|
14
|
+
|
15
|
+
class DataRecordSlimDict(TypedDict):
|
16
|
+
pass
|
17
|
+
|
18
|
+
|
19
|
+
class DataRecordDetailedDict(DataRecordSlimDict):
|
20
|
+
type: Optional[DataRecordTypeDict]
|
@@ -0,0 +1,14 @@
|
|
1
|
+
from .app import AppSlimDict
|
2
|
+
from .data_record import DataRecordSlimDict
|
3
|
+
from .experiment import ExperimentSlimDict
|
4
|
+
from .typing import Optional, TypedDict
|
5
|
+
|
6
|
+
|
7
|
+
class ResourceDict(TypedDict):
|
8
|
+
uuid: str
|
9
|
+
uri: str
|
10
|
+
name: str
|
11
|
+
created_at: str
|
12
|
+
app: Optional[AppSlimDict]
|
13
|
+
data_record: Optional[DataRecordSlimDict]
|
14
|
+
experiment: Optional[ExperimentSlimDict]
|
biolib/experiments/experiment.py
CHANGED
@@ -50,7 +50,7 @@ class Experiment:
|
|
50
50
|
return self._resource_dict['uri']
|
51
51
|
|
52
52
|
@property
|
53
|
-
def _experiment_dict(self) -> _types.
|
53
|
+
def _experiment_dict(self) -> _types.ExperimentSlimDict:
|
54
54
|
if not self._resource_dict['experiment']:
|
55
55
|
raise ValueError(f'Resource {self.uri} is not an Experiment')
|
56
56
|
|
@@ -16,8 +16,11 @@ biolib/_internal/libs/__init__.py,sha256=Jdf4tNPqe_oIIf6zYml6TiqhL_02Vyqwge6IELr
|
|
16
16
|
biolib/_internal/libs/fusepy/__init__.py,sha256=AWDzNFS-XV_5yKb0Qx7kggIhPzq1nj_BZS5y2Nso08k,41944
|
17
17
|
biolib/_internal/push_application.py,sha256=8P7eXvySn7CRp5XBDkO3xjTGixS8g7-jD-_iwzM_XDI,10020
|
18
18
|
biolib/_internal/runtime.py,sha256=9pZ3s3L7LGxdqOgnHh1KK3Jjyn_9MjhQmKHI-6hMT3U,448
|
19
|
-
biolib/_internal/types/__init__.py,sha256=
|
20
|
-
biolib/_internal/types/
|
19
|
+
biolib/_internal/types/__init__.py,sha256=11ZucS8jKeLGAAswXyKI7FH2KLHd6T9Sh8ZK2Ar3jlk,152
|
20
|
+
biolib/_internal/types/app.py,sha256=Mz2QGD_jESX-K9JYnLWPo4YA__Q_1FQQTk9pvidCohU,118
|
21
|
+
biolib/_internal/types/data_record.py,sha256=U1e9mqEAOOcjR2QzL8eK_xdttkN44yhxvslTyQk1QOo,369
|
22
|
+
biolib/_internal/types/experiment.py,sha256=D94iBdn2nS92lRW-TOs1a2WKXJD5ZtmzL4ypggKX2ys,176
|
23
|
+
biolib/_internal/types/resource.py,sha256=G-vPkZoe4Um6FPxsQZtRzAlbSW5sDW4NFkbjn21I3V4,372
|
21
24
|
biolib/_internal/types/typing.py,sha256=D4EKKEe7kDx0K6lJi-H_XLtk-8w6nu2fdqn9bvzI-Xo,288
|
22
25
|
biolib/_internal/utils/__init__.py,sha256=p5vsIFyu-zYqBgdSMfwW9NC_jk7rXvvCbV4Bzd3As7c,630
|
23
26
|
biolib/_runtime/runtime.py,sha256=zy9HrE4X5hBqm8doUHkckyflquSBDSXV3REhT2MQGas,2767
|
@@ -94,7 +97,7 @@ biolib/compute_node/webserver/webserver_types.py,sha256=2t8EaFKESnves3BA_NBdnS2y
|
|
94
97
|
biolib/compute_node/webserver/webserver_utils.py,sha256=XWvwYPbWNR3qS0FYbLLp-MDDfVk0QdaAmg3xPrT0H2s,4234
|
95
98
|
biolib/compute_node/webserver/worker_thread.py,sha256=26tG73TADnOcXsAr7Iyf6smrLlCqB4x-vvmpUb8WqnA,11569
|
96
99
|
biolib/experiments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
97
|
-
biolib/experiments/experiment.py,sha256=
|
100
|
+
biolib/experiments/experiment.py,sha256=jIRixmQm3Gq9YdJ3I0-rE1vFukXqq6U4zXehFOJ1yZk,7614
|
98
101
|
biolib/jobs/__init__.py,sha256=aIb2H2DHjQbM2Bs-dysFijhwFcL58Blp0Co0gimED3w,32
|
99
102
|
biolib/jobs/job.py,sha256=OfG8cLd3AjGjiMWRlJRZdVVbLsRWSX-OM5nxJhR6mPQ,19136
|
100
103
|
biolib/jobs/job_result.py,sha256=rALHiKYNaC9lHi_JJqBob1RubzNLwG9Z386kwRJjd2M,5885
|
@@ -113,8 +116,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
|
|
113
116
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
114
117
|
biolib/utils/seq_util.py,sha256=jC5WhH63FTD7SLFJbxQGA2hOt9NTwq9zHl_BEec1Z0c,4907
|
115
118
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
116
|
-
pybiolib-1.1.
|
117
|
-
pybiolib-1.1.
|
118
|
-
pybiolib-1.1.
|
119
|
-
pybiolib-1.1.
|
120
|
-
pybiolib-1.1.
|
119
|
+
pybiolib-1.1.2138.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
120
|
+
pybiolib-1.1.2138.dist-info/METADATA,sha256=kchNYjho0XuOe-z7E79uzYosSujZ-2wPJZfNEMsKAY0,1508
|
121
|
+
pybiolib-1.1.2138.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
122
|
+
pybiolib-1.1.2138.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
123
|
+
pybiolib-1.1.2138.dist-info/RECORD,,
|
@@ -1,14 +0,0 @@
|
|
1
|
-
from .typing import Optional, TypedDict
|
2
|
-
|
3
|
-
|
4
|
-
class ExperimentDict(TypedDict):
|
5
|
-
job_count: int
|
6
|
-
job_running_count: int
|
7
|
-
|
8
|
-
|
9
|
-
class ResourceDict(TypedDict):
|
10
|
-
created_at: str
|
11
|
-
experiment: Optional[ExperimentDict]
|
12
|
-
name: str
|
13
|
-
uri: str
|
14
|
-
uuid: str
|
File without changes
|
File without changes
|
File without changes
|