pybiolib 1.2.264__py3-none-any.whl → 1.2.298__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/compute_node/job_worker/executors/docker_executor.py +5 -1
- biolib/jobs/job.py +6 -2
- {pybiolib-1.2.264.dist-info → pybiolib-1.2.298.dist-info}/METADATA +3 -3
- {pybiolib-1.2.264.dist-info → pybiolib-1.2.298.dist-info}/RECORD +7 -9
- {pybiolib-1.2.264.dist-info → pybiolib-1.2.298.dist-info}/WHEEL +1 -1
- PYPI_README.md +0 -17
- pybiolib-1.2.264.dist-info/LICENSE +0 -21
- /LICENSE → /pybiolib-1.2.298.dist-info/LICENSE +0 -0
- {pybiolib-1.2.264.dist-info → pybiolib-1.2.298.dist-info}/entry_points.txt +0 -0
@@ -44,6 +44,8 @@ class DockerExecutor:
|
|
44
44
|
self._send_system_exception = options['send_system_exception']
|
45
45
|
self._send_stdout_and_stderr = options['send_stdout_and_stderr']
|
46
46
|
self._random_docker_id = compute_node_utils.random_string(15)
|
47
|
+
self._reserved_system_ram = int(os.sysconf('SC_PAGE_SIZE') * os.sysconf('SC_PHYS_PAGES') * 0.06) + 500_000_000
|
48
|
+
logger_no_user_data.info(f"System RAM reserved: {self._reserved_system_ram}")
|
47
49
|
|
48
50
|
if utils.IS_RUNNING_IN_CLOUD:
|
49
51
|
self._compute_process_dir = os.getenv('BIOLIB_USER_DATA_PATH')
|
@@ -374,7 +376,9 @@ class DockerExecutor:
|
|
374
376
|
|
375
377
|
if utils.IS_RUNNING_IN_CLOUD:
|
376
378
|
cloud_job = self._options['cloud_job']
|
377
|
-
create_container_args['mem_limit'] =
|
379
|
+
create_container_args['mem_limit'] = (
|
380
|
+
f'{cloud_job["reserved_memory_in_bytes"] - self._reserved_system_ram}b'
|
381
|
+
)
|
378
382
|
create_container_args['nano_cpus'] = cloud_job['reserved_cpu_in_nano_shares']
|
379
383
|
create_container_args['pids_limit'] = 10_000
|
380
384
|
|
biolib/jobs/job.py
CHANGED
@@ -178,9 +178,13 @@ class Job:
|
|
178
178
|
time.sleep(2)
|
179
179
|
logger.info(f'Job {self.id} has finished.')
|
180
180
|
|
181
|
-
def
|
181
|
+
def get_shareable_link(self) -> str:
|
182
182
|
api_client = BiolibApiClient.get()
|
183
|
-
|
183
|
+
shareable_link = f'{api_client.base_url}/results/{self.id}/?token={self._auth_token}'
|
184
|
+
return shareable_link
|
185
|
+
|
186
|
+
def open_browser(self) -> None:
|
187
|
+
results_url_to_open = self.get_shareable_link()
|
184
188
|
if IS_RUNNING_IN_NOTEBOOK:
|
185
189
|
print(f'Opening results page at: {results_url_to_open}')
|
186
190
|
print('If your browser does not open automatically, click on the link above.')
|
@@ -1,8 +1,7 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.3
|
2
2
|
Name: pybiolib
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.298
|
4
4
|
Summary: BioLib Python Client
|
5
|
-
Home-page: https://github.com/biolib
|
6
5
|
License: MIT
|
7
6
|
Keywords: biolib
|
8
7
|
Author: biolib
|
@@ -28,6 +27,7 @@ Requires-Dist: importlib-metadata (>=1.6.1)
|
|
28
27
|
Requires-Dist: pyyaml (>=5.3.1)
|
29
28
|
Requires-Dist: rich (>=12.4.4)
|
30
29
|
Requires-Dist: typing_extensions (>=3.10.0) ; python_version < "3.8"
|
30
|
+
Project-URL: Homepage, https://github.com/biolib
|
31
31
|
Description-Content-Type: text/markdown
|
32
32
|
|
33
33
|
# PyBioLib
|
@@ -1,5 +1,3 @@
|
|
1
|
-
LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
2
|
-
PYPI_README.md,sha256=_IH7pxFiqy2bIAmaVeA-iVTyUwWRjMIlfgtUbYTtmls,368
|
3
1
|
biolib/__init__.py,sha256=4Rfa0AJKztqkCG5D67kFgSwdOUiBTa5HkAzIOqHNREU,4431
|
4
2
|
biolib/_data_record/data_record.py,sha256=zKvnh5T-dIVY46-kgVzMBoZ666ZhcTCFQnWvZT0D6RM,12026
|
5
3
|
biolib/_internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -78,7 +76,7 @@ biolib/compute_node/job_worker/cache_state.py,sha256=MwjSRzcJJ_4jybqvBL4xdgnDYSI
|
|
78
76
|
biolib/compute_node/job_worker/cache_types.py,sha256=ajpLy8i09QeQS9dEqTn3T6NVNMY_YsHQkSD5nvIHccQ,818
|
79
77
|
biolib/compute_node/job_worker/docker_image_cache.py,sha256=ansHIkJIq_EMW1nZNlW-RRLVVeKWTbzNICYaOHpKiRE,7460
|
80
78
|
biolib/compute_node/job_worker/executors/__init__.py,sha256=bW6t1qi3PZTlHM4quaTLa8EI4ALTCk83cqcVJfJfJfE,145
|
81
|
-
biolib/compute_node/job_worker/executors/docker_executor.py,sha256=
|
79
|
+
biolib/compute_node/job_worker/executors/docker_executor.py,sha256=J-wv7FTb_HJnfRdIByiOdtj18Fw5nYvVm-n0D1mrqwA,29377
|
82
80
|
biolib/compute_node/job_worker/executors/docker_types.py,sha256=VhsU1DKtJjx_BbCkVmiPZPH4ROiL1ygW1Y_s1Kbpa2o,216
|
83
81
|
biolib/compute_node/job_worker/executors/tars/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
84
82
|
biolib/compute_node/job_worker/executors/types.py,sha256=yP5gG39hr-DLnw9bOE--VHi-1arDbIYiGuV1rlTbbHI,1466
|
@@ -103,7 +101,7 @@ biolib/compute_node/webserver/worker_thread.py,sha256=GRRBUqXdMKvbjyLQhYlqGIbFKe
|
|
103
101
|
biolib/experiments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
104
102
|
biolib/experiments/experiment.py,sha256=m7FB7hot8CMOVrNyWGPB6FTkWQJwI0ytpIvtPxfoPME,7684
|
105
103
|
biolib/jobs/__init__.py,sha256=aIb2H2DHjQbM2Bs-dysFijhwFcL58Blp0Co0gimED3w,32
|
106
|
-
biolib/jobs/job.py,sha256=
|
104
|
+
biolib/jobs/job.py,sha256=qXDjaI5YbxEHLYtF-vflfdz6j4AEb83ioqSZli5aOgM,20453
|
107
105
|
biolib/jobs/job_result.py,sha256=rALHiKYNaC9lHi_JJqBob1RubzNLwG9Z386kwRJjd2M,5885
|
108
106
|
biolib/jobs/types.py,sha256=ezvaoTANsWazK6PmfpYcqezdfjP7MNBEBfqIZGoZhz8,997
|
109
107
|
biolib/runtime/__init__.py,sha256=MlRepA11n2H-3plB5rzWyyHK2JmP6PiaP3i6x3vt0mg,506
|
@@ -120,8 +118,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
|
|
120
118
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
121
119
|
biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
|
122
120
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
123
|
-
pybiolib-1.2.
|
124
|
-
pybiolib-1.2.
|
125
|
-
pybiolib-1.2.
|
126
|
-
pybiolib-1.2.
|
127
|
-
pybiolib-1.2.
|
121
|
+
pybiolib-1.2.298.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
122
|
+
pybiolib-1.2.298.dist-info/METADATA,sha256=1ICb34Tjx7C3IheyO4nd-bkMwwM1JmW64ozEFCSbFXk,1570
|
123
|
+
pybiolib-1.2.298.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
124
|
+
pybiolib-1.2.298.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
125
|
+
pybiolib-1.2.298.dist-info/RECORD,,
|
PYPI_README.md
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# PyBioLib
|
2
|
-
|
3
|
-
PyBioLib is a Python package for running BioLib applications from Python scripts and the command line.
|
4
|
-
|
5
|
-
### Python Example
|
6
|
-
```python
|
7
|
-
# pip3 install -U pybiolib
|
8
|
-
import biolib
|
9
|
-
samtools = biolib.load('samtools/samtools')
|
10
|
-
print(samtools.cli(args='--help'))
|
11
|
-
```
|
12
|
-
|
13
|
-
### Command Line Example
|
14
|
-
```bash
|
15
|
-
pip3 install -U pybiolib
|
16
|
-
biolib run samtools/samtools --help
|
17
|
-
```
|
@@ -1,21 +0,0 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2020 BioLib Inc
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
File without changes
|
File without changes
|