pybiolib 1.1.1984__py3-none-any.whl → 1.1.1986__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/fuse_mount/experiment_fuse_mount.py +8 -5
- biolib/experiments/experiment.py +2 -2
- {pybiolib-1.1.1984.dist-info → pybiolib-1.1.1986.dist-info}/METADATA +1 -1
- {pybiolib-1.1.1984.dist-info → pybiolib-1.1.1986.dist-info}/RECORD +7 -7
- {pybiolib-1.1.1984.dist-info → pybiolib-1.1.1986.dist-info}/LICENSE +0 -0
- {pybiolib-1.1.1984.dist-info → pybiolib-1.1.1986.dist-info}/WHEEL +0 -0
- {pybiolib-1.1.1984.dist-info → pybiolib-1.1.1986.dist-info}/entry_points.txt +0 -0
@@ -29,10 +29,10 @@ class ExperimentFuseMount(Operations):
|
|
29
29
|
self._mounted_at_epoch_seconds: int = int(time())
|
30
30
|
|
31
31
|
@staticmethod
|
32
|
-
def
|
32
|
+
def mount_experiment(experiment, mount_path: str) -> None:
|
33
33
|
FUSE(
|
34
34
|
operations=ExperimentFuseMount(experiment),
|
35
|
-
mountpoint=
|
35
|
+
mountpoint=mount_path,
|
36
36
|
nothreads=True,
|
37
37
|
foreground=True,
|
38
38
|
allow_other=False,
|
@@ -108,6 +108,12 @@ class ExperimentFuseMount(Operations):
|
|
108
108
|
|
109
109
|
return file.get_data(start=offset, length=size)
|
110
110
|
|
111
|
+
def release(self, path: str, fh: int) -> int:
|
112
|
+
return 0
|
113
|
+
|
114
|
+
def releasedir(self, path: str, fh: int) -> int:
|
115
|
+
return 0
|
116
|
+
|
111
117
|
@staticmethod
|
112
118
|
def _get_directory_attributes(timestamp_epoch_seconds: int) -> _AttributeDict:
|
113
119
|
return _AttributeDict(
|
@@ -196,8 +202,5 @@ class ExperimentFuseMount(Operations):
|
|
196
202
|
def flush(self, path, fh):
|
197
203
|
raise FuseOSError(errno.EACCES)
|
198
204
|
|
199
|
-
def release(self, path, fh):
|
200
|
-
raise FuseOSError(errno.EACCES)
|
201
|
-
|
202
205
|
def fsync(self, path, datasync, fh):
|
203
206
|
raise FuseOSError(errno.EACCES)
|
biolib/experiments/experiment.py
CHANGED
@@ -73,7 +73,7 @@ class Experiment:
|
|
73
73
|
def add_job(self, job_id: str) -> None:
|
74
74
|
api.client.patch(path=f'/jobs/{job_id}/', data={'experiment_uuid': self.uuid})
|
75
75
|
|
76
|
-
def mount_files(self,
|
76
|
+
def mount_files(self, mount_path: str) -> None:
|
77
77
|
try:
|
78
78
|
# Only attempt to import FUSE dependencies when strictly necessary
|
79
79
|
from biolib._internal.fuse_mount import ( # pylint: disable=import-outside-toplevel
|
@@ -84,7 +84,7 @@ class Experiment:
|
|
84
84
|
'Failed to import FUSE mounting utils. Please ensure FUSE is installed on your system.'
|
85
85
|
) from error
|
86
86
|
|
87
|
-
_ExperimentFuseMount.
|
87
|
+
_ExperimentFuseMount.mount_experiment(experiment=self, mount_path=mount_path)
|
88
88
|
|
89
89
|
def export_job_list(self, export_format='dicts'):
|
90
90
|
valid_formats = ('dicts', 'dataframe')
|
@@ -6,7 +6,7 @@ biolib/_internal/data_record/__init__.py,sha256=1Bk303i3rFet9veS56fIsrBYtT5X3n9v
|
|
6
6
|
biolib/_internal/data_record/data_record.py,sha256=ctijrrZ-LfUxtwzS8PEVa1VBuBLVWEhmo2yHcEDkC0A,7178
|
7
7
|
biolib/_internal/data_record/remote_storage_endpoint.py,sha256=LPq8Lr5FhKF9_o5K-bUdT7TeLe5XFUD0AAeTkNEVZug,1133
|
8
8
|
biolib/_internal/fuse_mount/__init__.py,sha256=B_tM6RM2dBw-vbpoHJC4X3tOAaN1H2RDvqYJOw3xFwg,55
|
9
|
-
biolib/_internal/fuse_mount/experiment_fuse_mount.py,sha256=
|
9
|
+
biolib/_internal/fuse_mount/experiment_fuse_mount.py,sha256=MjGY9vNL-QivDF8w4qKuF3P7auv5cGK9qKKYYyDYQY4,6966
|
10
10
|
biolib/_internal/http_client.py,sha256=DdooXei93JKGYGV4aQmzue_oFzvHkozg2UCxgk9dfDM,5081
|
11
11
|
biolib/_internal/libs/__init__.py,sha256=Jdf4tNPqe_oIIf6zYml6TiqhL_02Vyqwge6IELrAFhw,98
|
12
12
|
biolib/_internal/libs/fusepy/__init__.py,sha256=AWDzNFS-XV_5yKb0Qx7kggIhPzq1nj_BZS5y2Nso08k,41944
|
@@ -86,7 +86,7 @@ biolib/compute_node/webserver/webserver_types.py,sha256=Vmt1ZDecYhGBVEYWcW1DVxee
|
|
86
86
|
biolib/compute_node/webserver/webserver_utils.py,sha256=XWvwYPbWNR3qS0FYbLLp-MDDfVk0QdaAmg3xPrT0H2s,4234
|
87
87
|
biolib/compute_node/webserver/worker_thread.py,sha256=26tG73TADnOcXsAr7Iyf6smrLlCqB4x-vvmpUb8WqnA,11569
|
88
88
|
biolib/experiments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
89
|
-
biolib/experiments/experiment.py,sha256=
|
89
|
+
biolib/experiments/experiment.py,sha256=_ied3A3U6NFa6_ewEYn2TCozqeHvDxDqdRhMtZbFL-M,6380
|
90
90
|
biolib/experiments/types.py,sha256=n9GxdFA7cLMfHvLLqLmZzX31ELeSSkMXFoEEdFsdWGY,171
|
91
91
|
biolib/jobs/__init__.py,sha256=aIb2H2DHjQbM2Bs-dysFijhwFcL58Blp0Co0gimED3w,32
|
92
92
|
biolib/jobs/job.py,sha256=aWKnf_2pYdr76gh3hxPiVs2iuXlpwZkKPTK81Pz4G2U,19072
|
@@ -109,8 +109,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
|
|
109
109
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
110
110
|
biolib/utils/seq_util.py,sha256=jC5WhH63FTD7SLFJbxQGA2hOt9NTwq9zHl_BEec1Z0c,4907
|
111
111
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
112
|
-
pybiolib-1.1.
|
113
|
-
pybiolib-1.1.
|
114
|
-
pybiolib-1.1.
|
115
|
-
pybiolib-1.1.
|
116
|
-
pybiolib-1.1.
|
112
|
+
pybiolib-1.1.1986.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
113
|
+
pybiolib-1.1.1986.dist-info/METADATA,sha256=p82i2WtF6K3qM7lWMT00MKh7Eqp2HuFOrqZEeEU98_0,1508
|
114
|
+
pybiolib-1.1.1986.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
115
|
+
pybiolib-1.1.1986.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
116
|
+
pybiolib-1.1.1986.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|