pybiolib 1.2.197__py3-none-any.whl → 1.2.205__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
@@ -32,6 +32,7 @@ class Job:
32
32
  table_columns_to_row_map = OrderedDict(
33
33
  {
34
34
  'ID': {'key': 'uuid', 'params': {'width': 36}},
35
+ 'Name': {'key': 'main_result.name', 'params': {}},
35
36
  'Application': {'key': 'app_uri', 'params': {}},
36
37
  'Status': {'key': 'state', 'params': {}},
37
38
  'Started At': {'key': 'started_at', 'params': {}},
biolib/tables.py CHANGED
@@ -17,7 +17,16 @@ class BioLibTable:
17
17
  columns = [Column(header=header, **meta['params']) for header, meta in self.columns_to_row_map.items()]
18
18
  table = Table(*columns, title=self.title)
19
19
  for row in self.rows:
20
- table.add_row(*[str(row[column['key']]) for column in self.columns_to_row_map.values()])
20
+ row_values: List[str] = []
21
+ for column in self.columns_to_row_map.values():
22
+ keys = column['key'].split('.')
23
+ value = row[keys[0]]
24
+ for key in keys[1:]:
25
+ if not value or key not in value:
26
+ continue
27
+ value = value[key]
28
+ row_values.append(str(value))
29
+ table.add_row(*row_values)
21
30
  return table
22
31
 
23
32
  def print_table(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pybiolib
3
- Version: 1.2.197
3
+ Version: 1.2.205
4
4
  Summary: BioLib Python Client
5
5
  Home-page: https://github.com/biolib
6
6
  License: MIT
@@ -103,12 +103,12 @@ biolib/compute_node/webserver/worker_thread.py,sha256=GRRBUqXdMKvbjyLQhYlqGIbFKe
103
103
  biolib/experiments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
104
104
  biolib/experiments/experiment.py,sha256=m7FB7hot8CMOVrNyWGPB6FTkWQJwI0ytpIvtPxfoPME,7684
105
105
  biolib/jobs/__init__.py,sha256=aIb2H2DHjQbM2Bs-dysFijhwFcL58Blp0Co0gimED3w,32
106
- biolib/jobs/job.py,sha256=97OvImY2LewwGUTaAuBXsJJ8cUak0nOfjX7QIAgrtAA,20100
106
+ biolib/jobs/job.py,sha256=et1slGdzczp112iJlHVp_7eTyhGoGSKxP31jgAwQuiM,20163
107
107
  biolib/jobs/job_result.py,sha256=rALHiKYNaC9lHi_JJqBob1RubzNLwG9Z386kwRJjd2M,5885
108
108
  biolib/jobs/types.py,sha256=ezvaoTANsWazK6PmfpYcqezdfjP7MNBEBfqIZGoZhz8,997
109
109
  biolib/runtime/__init__.py,sha256=MlRepA11n2H-3plB5rzWyyHK2JmP6PiaP3i6x3vt0mg,506
110
110
  biolib/sdk/__init__.py,sha256=8uyOAKt8-Xo11jAWXCg14NkE1u0FkOBC07L3V7wGsCg,1960
111
- biolib/tables.py,sha256=uxkbnXVZduZbz_1BRkpXgw_P71Puvsr8lW2ogt2VpPc,842
111
+ biolib/tables.py,sha256=MmruV-nJLc3HbLVJBAiDuDCgS2-4oaUkpoCLLUNYbxQ,1173
112
112
  biolib/templates/__init__.py,sha256=Yx62sSyDCDesRQDQgmbDsLpfgEh93fWE8r9u4g2azXk,36
113
113
  biolib/templates/example_app.py,sha256=EB3E3RT4SeO_ii5nVQqJpi5KDGNE_huF1ub-e5ZFveE,715
114
114
  biolib/typing_utils.py,sha256=ntzrlyTkUaO2OtccLYzCAGztGdca0WT5fikJUmSkT-Y,148
@@ -120,8 +120,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
120
120
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
121
121
  biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
122
122
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
123
- pybiolib-1.2.197.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
124
- pybiolib-1.2.197.dist-info/METADATA,sha256=M3CE4EFJhUW5x4OLIjMFW79RdeyonCDwJrPVkywCWe0,1558
125
- pybiolib-1.2.197.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
126
- pybiolib-1.2.197.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
127
- pybiolib-1.2.197.dist-info/RECORD,,
123
+ pybiolib-1.2.205.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
124
+ pybiolib-1.2.205.dist-info/METADATA,sha256=LjiDMp_T2GSUwQwbOn6i1l1_hVxE_cUB0a56MGh8UlE,1558
125
+ pybiolib-1.2.205.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
126
+ pybiolib-1.2.205.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
127
+ pybiolib-1.2.205.dist-info/RECORD,,