pybiolib 1.2.16__py3-none-any.whl → 1.2.29.dev1__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.
@@ -118,7 +118,9 @@ def fasta_batch_records(fasta_file, work_per_batch_min, work_per_residue=1, verb
118
118
  return batches
119
119
 
120
120
 
121
- def fasta_send_batches_biolib(app_url, batches, args, args_fasta='fasta', verbose=1):
121
+ def fasta_send_batches_biolib(
122
+ app_url, batches, args, args_fasta='fasta', machine='cpu.large', stream_all_jobs=True, verbose=1
123
+ ):
122
124
  """
123
125
  Send jobs through pybiolib interface
124
126
  """
@@ -148,7 +150,7 @@ def fasta_send_batches_biolib(app_url, batches, args, args_fasta='fasta', verbos
148
150
  new_args_list = _args_dict_to_args_list(new_args)
149
151
 
150
152
  # Send job
151
- job = current_app.cli(args=new_args_list, blocking=False)
153
+ job = current_app.cli(args=new_args_list, blocking=False, machine=machine)
152
154
  job_list.append(job)
153
155
 
154
156
  # Job stats
@@ -160,7 +162,9 @@ def fasta_send_batches_biolib(app_url, batches, args, args_fasta='fasta', verbos
160
162
  # Stream job output at a time
161
163
  print('Streaming job outputs ...')
162
164
  for i, job in enumerate(job_list):
163
- job.stream_logs()
165
+ # Try to print if verbose. Always on first job, otherwise only if stream_all_jobs set
166
+ if (i == 0 and verbose) or (stream_all_jobs and verbose):
167
+ job.stream_logs()
164
168
 
165
169
  # Check if job succeeded
166
170
  assert job.get_exit_code() == 0, f'Job failed with exit code {job.get_exit_code()}'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pybiolib
3
- Version: 1.2.16
3
+ Version: 1.2.29.dev1
4
4
  Summary: BioLib Python Client
5
5
  Home-page: https://github.com/biolib
6
6
  License: MIT
@@ -23,7 +23,7 @@ biolib/_internal/types/experiment.py,sha256=D94iBdn2nS92lRW-TOs1a2WKXJD5ZtmzL4yp
23
23
  biolib/_internal/types/resource.py,sha256=G-vPkZoe4Um6FPxsQZtRzAlbSW5sDW4NFkbjn21I3V4,372
24
24
  biolib/_internal/types/typing.py,sha256=D4EKKEe7kDx0K6lJi-H_XLtk-8w6nu2fdqn9bvzI-Xo,288
25
25
  biolib/_internal/utils/__init__.py,sha256=p5vsIFyu-zYqBgdSMfwW9NC_jk7rXvvCbV4Bzd3As7c,630
26
- biolib/_internal/utils/multinode.py,sha256=7RBW620gZeNQ-vocwsxaVAog9ryDdqJIsBpSqxpLL8c,8049
26
+ biolib/_internal/utils/multinode.py,sha256=zWrQhcVK5u_xdWX2oIM-D_2fINqNPlqF_h71fu4K8LY,8279
27
27
  biolib/_runtime/runtime.py,sha256=oVgTnDDJv9L4BUP1_sd0oAj4LLyyiPSQdhp7ixWARvw,2923
28
28
  biolib/api/__init__.py,sha256=mQ4u8FijqyLzjYMezMUUbbBGNB3iFmkNdjXnWPZ7Jlw,138
29
29
  biolib/api/client.py,sha256=FRpdH5aI187b_I_4HUNi680v4iOP65z5f2RcUo8D8MA,3559
@@ -117,8 +117,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
117
117
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
118
118
  biolib/utils/seq_util.py,sha256=ZQFcaE37B2dtucN2zDjOmdya_X0ITc1zBFZJNQY13XA,5183
119
119
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
120
- pybiolib-1.2.16.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
121
- pybiolib-1.2.16.dist-info/METADATA,sha256=0M98sCf8hfo8Rh7qo5ikBTIFJcRuQjvWmWeqvHt_69o,1506
122
- pybiolib-1.2.16.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
123
- pybiolib-1.2.16.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
124
- pybiolib-1.2.16.dist-info/RECORD,,
120
+ pybiolib-1.2.29.dev1.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
121
+ pybiolib-1.2.29.dev1.dist-info/METADATA,sha256=dTLBYuxUBiloRqxIjMls-rsEg48Jhs9BRMaYq9O7CK0,1511
122
+ pybiolib-1.2.29.dev1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
123
+ pybiolib-1.2.29.dev1.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
124
+ pybiolib-1.2.29.dev1.dist-info/RECORD,,