pybiolib 1.2.678__py3-none-any.whl → 1.2.686__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
@@ -63,7 +63,7 @@ class Job:
63
63
 
64
64
  # ANSI color codes for terminal output
65
65
  blue = '\033[34m'
66
- white = '\033[37m'
66
+ white = '\033[90m'
67
67
  reset = '\033[0m'
68
68
 
69
69
  # Start with the header section
@@ -296,6 +296,19 @@ class Job:
296
296
  except Exception as error:
297
297
  logger.error(f'Failed to cancel job {self._uuid} due to: {error}')
298
298
 
299
+ def delete(self) -> None:
300
+ """Delete the job.
301
+
302
+ Example::
303
+ >>> job = biolib.get_job("job_id")
304
+ >>> job.delete()
305
+ """
306
+ try:
307
+ biolib.api.client.delete(path=f'/jobs/{self._uuid}/')
308
+ logger.info(f'Job {self._uuid} deleted')
309
+ except Exception as error:
310
+ raise BioLibError(f'Failed to delete job {self._uuid} due to: {error}') from error
311
+
299
312
  def rename(self, name: str) -> None:
300
313
  try:
301
314
  biolib.api.client.patch(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pybiolib
3
- Version: 1.2.678
3
+ Version: 1.2.686
4
4
  Summary: BioLib Python Client
5
5
  License: MIT
6
6
  Keywords: biolib
@@ -108,7 +108,7 @@ biolib/compute_node/webserver/worker_thread.py,sha256=7uD9yQPhePYvP2HCJ27EeZ_h6p
108
108
  biolib/experiments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
109
109
  biolib/experiments/experiment.py,sha256=pBtnOHz0kKoFxlIGf08o8ZCEOze-CljwfOsTdhvCTCk,8646
110
110
  biolib/jobs/__init__.py,sha256=aIb2H2DHjQbM2Bs-dysFijhwFcL58Blp0Co0gimED3w,32
111
- biolib/jobs/job.py,sha256=nHSYUIUcvujfh6Q85j1qLGIWzXKwp4kEou8ywhngJlQ,26276
111
+ biolib/jobs/job.py,sha256=X33-s9u8x3uZI0x_fSDgEFAW0ke-8Qi96M-VB-W29MA,26703
112
112
  biolib/jobs/job_result.py,sha256=rALHiKYNaC9lHi_JJqBob1RubzNLwG9Z386kwRJjd2M,5885
113
113
  biolib/jobs/types.py,sha256=ezvaoTANsWazK6PmfpYcqezdfjP7MNBEBfqIZGoZhz8,997
114
114
  biolib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -126,8 +126,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
126
126
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
127
127
  biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
128
128
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
129
- pybiolib-1.2.678.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
130
- pybiolib-1.2.678.dist-info/METADATA,sha256=x4HkSXSKyAR_YIOCHMl7SfrdBptlfAuj2XLTsKjW_cw,1570
131
- pybiolib-1.2.678.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
132
- pybiolib-1.2.678.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
133
- pybiolib-1.2.678.dist-info/RECORD,,
129
+ pybiolib-1.2.686.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
130
+ pybiolib-1.2.686.dist-info/METADATA,sha256=bv0qAgdSwT1HiS0SiiZb0fcsl9TFn2YWIG5TCf8zB4c,1570
131
+ pybiolib-1.2.686.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
132
+ pybiolib-1.2.686.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
133
+ pybiolib-1.2.686.dist-info/RECORD,,