pybiolib 1.2.264__py3-none-any.whl → 1.2.270__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/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 open_browser(self) -> None:
181
+ def get_shareable_link(self) -> str:
182
182
  api_client = BiolibApiClient.get()
183
- results_url_to_open = f'{api_client.base_url}/results/{self.id}/?token={self._auth_token}'
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
1
+ Metadata-Version: 2.3
2
2
  Name: pybiolib
3
- Version: 1.2.264
3
+ Version: 1.2.270
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
@@ -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=W0r9_AbHha1lC99U_kUuzDmavFQe7WLxs83Wp3g_3ZU,20330
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.264.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
124
- pybiolib-1.2.264.dist-info/METADATA,sha256=pJKjfgwqbhssh25YE8ksBIKSVzRqJ3wFQP7UUXec854,1558
125
- pybiolib-1.2.264.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
126
- pybiolib-1.2.264.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
127
- pybiolib-1.2.264.dist-info/RECORD,,
121
+ pybiolib-1.2.270.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
122
+ pybiolib-1.2.270.dist-info/METADATA,sha256=4X3mMHFS8Na5DmbDm6-1QmUXJpG2MhbYm_ZQGi-2Eiw,1570
123
+ pybiolib-1.2.270.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
124
+ pybiolib-1.2.270.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
125
+ pybiolib-1.2.270.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.1
2
+ Generator: poetry-core 2.0.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
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