pybiolib 1.2.494__py3-none-any.whl → 1.2.497__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
@@ -217,6 +217,19 @@ class Job:
217
217
  except Exception as error:
218
218
  logger.error(f'Failed to cancel job {self._uuid} due to: {error}')
219
219
 
220
+ def rename(self, name: str) -> None:
221
+ try:
222
+ api.client.patch(
223
+ path=f'/jobs/{self._uuid}/main_result/',
224
+ headers={'Job-Auth-Token': self._auth_token} if self._auth_token else None,
225
+ data={'result_name_prefix': name},
226
+ )
227
+ self._refetch_job_dict(force_refetch=True)
228
+ updated_name = self.get_name()
229
+ logger.info(f'Job {self._uuid} renamed to "{updated_name}"')
230
+ except Exception as error:
231
+ raise BioLibError(f'Failed to rename job {self._uuid} due to: {error}') from error
232
+
220
233
  def recompute(self, app_uri: Optional[str] = None, machine: Optional[str] = None, blocking: bool = True) -> 'Job':
221
234
  app_response = BiolibAppApi.get_by_uri(uri=app_uri or self._job_dict['app_uri'])
222
235
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pybiolib
3
- Version: 1.2.494
3
+ Version: 1.2.497
4
4
  Summary: BioLib Python Client
5
5
  License: MIT
6
6
  Keywords: biolib
@@ -101,7 +101,7 @@ biolib/compute_node/webserver/worker_thread.py,sha256=7uD9yQPhePYvP2HCJ27EeZ_h6p
101
101
  biolib/experiments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
102
102
  biolib/experiments/experiment.py,sha256=V1_UtcDm2ydxDjOlk0N7bv1jGTAb06psflAYcqbo0sY,8559
103
103
  biolib/jobs/__init__.py,sha256=aIb2H2DHjQbM2Bs-dysFijhwFcL58Blp0Co0gimED3w,32
104
- biolib/jobs/job.py,sha256=UAAqMtncarYQIMaJxO94pjQay9WEwrkMNI6suB8RsGs,20856
104
+ biolib/jobs/job.py,sha256=edKfRiojv6f4sLzz1YfJupwvHL2zuh7L_2v_3a4gSCI,21456
105
105
  biolib/jobs/job_result.py,sha256=rALHiKYNaC9lHi_JJqBob1RubzNLwG9Z386kwRJjd2M,5885
106
106
  biolib/jobs/types.py,sha256=ezvaoTANsWazK6PmfpYcqezdfjP7MNBEBfqIZGoZhz8,997
107
107
  biolib/runtime/__init__.py,sha256=MlRepA11n2H-3plB5rzWyyHK2JmP6PiaP3i6x3vt0mg,506
@@ -118,8 +118,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
118
118
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
119
119
  biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
120
120
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
121
- pybiolib-1.2.494.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
122
- pybiolib-1.2.494.dist-info/METADATA,sha256=p_2i-MU1KZt6WOl1soybjayo_WD8T2f6cib_gn_1UDw,1570
123
- pybiolib-1.2.494.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
124
- pybiolib-1.2.494.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
125
- pybiolib-1.2.494.dist-info/RECORD,,
121
+ pybiolib-1.2.497.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
122
+ pybiolib-1.2.497.dist-info/METADATA,sha256=cLndAddMgPktyIsce8NU-Jb9c0bR_WaG3FVGo-YjUl8,1570
123
+ pybiolib-1.2.497.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
124
+ pybiolib-1.2.497.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
125
+ pybiolib-1.2.497.dist-info/RECORD,,