pybiolib 1.1.1988__py3-none-any.whl → 1.1.1995__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.
@@ -99,6 +99,7 @@ class _AppVersionOnJob(TypedDict):
99
99
 
100
100
  class AppOnJob(TypedDict):
101
101
  allow_client_side_execution: bool
102
+ can_access_all_data_records_of_user: bool
102
103
  can_push_data_record_for_user: bool
103
104
  state: Literal['public', 'draft']
104
105
 
@@ -317,6 +317,7 @@ class JobWorker:
317
317
  job_id,
318
318
  ports,
319
319
  can_push_data_record_for_user=app.get('can_push_data_record_for_user', False),
320
+ can_access_all_data_records_of_user=app.get('can_access_all_data_records_of_user', False),
320
321
  )
321
322
  remote_host_proxy.start()
322
323
  self._remote_host_proxies.append(remote_host_proxy)
@@ -31,8 +31,10 @@ class RemoteHostProxy:
31
31
  job_id: str,
32
32
  ports: List[int],
33
33
  can_push_data_record_for_user: bool,
34
+ can_access_all_data_records_of_user: bool,
34
35
  ):
35
36
  self._can_push_data_record_for_user: bool = can_push_data_record_for_user
37
+ self._can_access_all_data_records_of_user: bool = can_access_all_data_records_of_user
36
38
  self.is_app_caller_proxy = remote_host['hostname'] == 'AppCallerProxy'
37
39
  self._remote_host: RemoteHostExtended = RemoteHostExtended(hostname=remote_host['hostname'], ports=ports)
38
40
  self._public_network: Network = public_network
@@ -297,7 +299,14 @@ http {{
297
299
 
298
300
  location /api/lfs/ {{
299
301
  proxy_pass {base_url}/api/lfs/;
300
- proxy_set_header authorization {'$bearer_token_on_post_and_get' if self._can_push_data_record_for_user else '""'};
302
+ proxy_set_header authorization {'$bearer_token_on_post_and_get' if self._can_push_data_record_for_user else '$bearer_token_on_get' if self._can_access_all_data_records_of_user else '""'};
303
+ proxy_set_header cookie "";
304
+ proxy_ssl_server_name on;
305
+ }}
306
+
307
+ location /api/app/ {{
308
+ proxy_pass {base_url}/api/app/;
309
+ proxy_set_header authorization {'$bearer_token_on_get' if self._can_access_all_data_records_of_user else '""'};
301
310
  proxy_set_header cookie "";
302
311
  proxy_ssl_server_name on;
303
312
  }}
@@ -337,7 +346,7 @@ http {{
337
346
  proxy_set_header cookie "";
338
347
  proxy_ssl_server_name on;
339
348
  }}
340
- """ if self._can_push_data_record_for_user else ''}
349
+ """ if self._can_push_data_record_for_user or self._can_access_all_data_records_of_user else ''}
341
350
 
342
351
  location /proxy/cloud/ {{
343
352
  proxy_pass {cloud_base_url}/proxy/cloud/;
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pybiolib
3
- Version: 1.1.1988
3
+ Version: 1.1.1995
4
4
  Summary: BioLib Python Client
5
5
  Home-page: https://github.com/biolib
6
6
  License: MIT
@@ -20,7 +20,7 @@ biolib/app/app.py,sha256=8AvPYL1W2wxQ7t7BB2KeVU2WPrm3UL6vVuHPGs8g9L0,8388
20
20
  biolib/app/search_apps.py,sha256=K4a41f5XIWth2BWI7OffASgIsD0ko8elCax8YL2igaY,1470
21
21
  biolib/biolib_api_client/__init__.py,sha256=E5EMa19wJoblwSdQPYrxc_BtIeRsAuO0L_jQweWw-Yk,182
22
22
  biolib/biolib_api_client/api_client.py,sha256=J03jRVvod1bgwwAZ3BZVKlUSJi43-ev2DUB0j63GZpc,7189
23
- biolib/biolib_api_client/app_types.py,sha256=rEw4HICV7ujdmlzM3BjRcMNMbiYItliivpH0rkeJx4s,2465
23
+ biolib/biolib_api_client/app_types.py,sha256=NpOFN9oVF08qpo2nXhKwC_AQYAIuSoqn9FeqGXTWhx8,2511
24
24
  biolib/biolib_api_client/auth.py,sha256=kjm0ZHnH3I8so3su2sZbBxNHYp-ZUdrZ5lwQ0K36RSw,949
25
25
  biolib/biolib_api_client/biolib_app_api.py,sha256=DndlVxrNTes6DOaWyMINLGZQCRMWVvR7gwt5HVlyf5Y,4240
26
26
  biolib/biolib_api_client/biolib_job_api.py,sha256=IpFahcRzm7GNy8DJ-XHYe-x7r4Voba8o22IXw5puHn8,6782
@@ -70,12 +70,12 @@ biolib/compute_node/job_worker/executors/types.py,sha256=yP5gG39hr-DLnw9bOE--VHi
70
70
  biolib/compute_node/job_worker/job_legacy_input_wait_timeout_thread.py,sha256=_cvEiZbOwfkv6fYmfrvdi_FVviIEYr_dSClQcOQaUWM,1198
71
71
  biolib/compute_node/job_worker/job_max_runtime_timer_thread.py,sha256=K_xgz7IhiIjpLlXRk8sqaMyLoApcidJkgu29sJX0gb8,1174
72
72
  biolib/compute_node/job_worker/job_storage.py,sha256=LNkklckDLbYgCHsK5FGrEK75Kw-H4f4JcTCAtuE9His,4035
73
- biolib/compute_node/job_worker/job_worker.py,sha256=LH8URvDXHa2TT9yk5zUN0RKJGnf4h7WMVx70yQ8GniI,28986
73
+ biolib/compute_node/job_worker/job_worker.py,sha256=KDtj3rKokZVKx323-Z0brd5paSYIN6AOhPLHyYQjT5E,29101
74
74
  biolib/compute_node/job_worker/large_file_system.py,sha256=XXqRlVtYhs-Ji9zQGIk5KQPXFO_Q5jJH0nnlw4GkeMY,10461
75
75
  biolib/compute_node/job_worker/mappings.py,sha256=Z48Kg4nbcOvsT2-9o3RRikBkqflgO4XeaWxTGz-CNvI,2499
76
76
  biolib/compute_node/job_worker/utilization_reporter_thread.py,sha256=7tm5Yk9coqJ9VbEdnO86tSXI0iM0omwIyKENxdxiVXk,8575
77
77
  biolib/compute_node/job_worker/utils.py,sha256=wgxcIA8yAhUPdCwyvuuJ0JmreyWmmUoBO33vWtG60xg,1282
78
- biolib/compute_node/remote_host_proxy.py,sha256=a9dlAETI727ejmk07jMGPAmiliBoy4t1yfX_NkLoIZ4,15768
78
+ biolib/compute_node/remote_host_proxy.py,sha256=BYmdw6LmyS0YouKsgAsoROX3__rVPantcJu1luIsm2Q,16352
79
79
  biolib/compute_node/socker_listener_thread.py,sha256=T5_UikA3MB9bD5W_dckYLPTgixh72vKUlgbBvj9dbM0,1601
80
80
  biolib/compute_node/socket_sender_thread.py,sha256=YgamPHeUm2GjMFGx8qk-99WlZhEs-kAb3q_2O6qByig,971
81
81
  biolib/compute_node/utils.py,sha256=M7i_WTyxbFM3Lri9RWZ_8FeQNYrQIWpKGLfp2I55oeY,4677
@@ -109,8 +109,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
109
109
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
110
110
  biolib/utils/seq_util.py,sha256=jC5WhH63FTD7SLFJbxQGA2hOt9NTwq9zHl_BEec1Z0c,4907
111
111
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
112
- pybiolib-1.1.1988.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
113
- pybiolib-1.1.1988.dist-info/METADATA,sha256=XIgluZ7kse6hsGgEvV_WuogxaTHLLDbqp-ogSllCZmg,1508
114
- pybiolib-1.1.1988.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
115
- pybiolib-1.1.1988.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
116
- pybiolib-1.1.1988.dist-info/RECORD,,
112
+ pybiolib-1.1.1995.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
113
+ pybiolib-1.1.1995.dist-info/METADATA,sha256=DAKK-AVJu-iyW_SwhKYCOsgPLzJjoOV6C1eIZlaThkE,1508
114
+ pybiolib-1.1.1995.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
115
+ pybiolib-1.1.1995.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
116
+ pybiolib-1.1.1995.dist-info/RECORD,,