pybiolib 1.2.883__py3-none-any.whl → 1.2.897__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.
@@ -196,7 +196,10 @@ def push_application(
196
196
  parsed_uri = parse_app_uri(app_uri)
197
197
  app_name = parsed_uri['app_name']
198
198
 
199
- app_uri_to_fetch = f"@{parsed_uri['resource_name_prefix']}/{parsed_uri['account_handle_normalized']}/{app_name}"
199
+ app_uri_prefix = (
200
+ f"@{parsed_uri['resource_name_prefix']}/" if parsed_uri['resource_name_prefix'] != 'biolib.com' else ''
201
+ )
202
+ app_uri_to_fetch = f"{app_uri_prefix}{parsed_uri['account_handle_normalized']}/{app_name}"
200
203
 
201
204
  version = parsed_uri['version']
202
205
  semantic_version = f"{version['major']}.{version['minor']}.{version['patch']}" if version else None
@@ -205,14 +208,14 @@ def push_application(
205
208
 
206
209
  api_client = BiolibApiClient.get()
207
210
  if not api_client.is_signed_in:
208
- github_ref = os.getenv('GITHUB_REF')
209
- if github_ref and not api_client.resource_deploy_key:
211
+ github_repository = os.getenv('GITHUB_REPOSITORY')
212
+ if github_repository and not api_client.resource_deploy_key:
213
+ github_secrets_url = f'https://github.com/{github_repository}/settings/secrets/actions/new'
210
214
  raise AuthenticationError(
211
215
  'You must be authenticated to push an application.\n'
212
216
  'Please set the environment variable "BIOLIB_TOKEN=[your_deploy_token]"\n'
213
217
  f'You can get a deploy key at: {api_client.base_url}/{app_uri_to_fetch}/settings/keys/\n'
214
- 'Then add it to your GitHub repository at: '
215
- 'Settings -> Secrets and variables -> Actions -> Repository secrets'
218
+ f'Then add it to your GitHub repository at: {github_secrets_url}'
216
219
  )
217
220
  else:
218
221
  raise AuthenticationError(
@@ -2,20 +2,11 @@ import argparse
2
2
 
3
3
  from biolib.sdk import Runtime
4
4
 
5
+ parser = argparse.ArgumentParser(description='Process some biological sequences.')
6
+ parser.add_argument('--input', type=str, required=True, help='Input protein sequences')
7
+ args = parser.parse_args()
5
8
 
6
- def parse_args():
7
- parser = argparse.ArgumentParser(description='Process some biological sequences.')
8
- parser.add_argument('--input', type=str, required=True, help='Input protein sequences')
9
- return parser.parse_args()
9
+ # update the BioLib result name based on the provided file
10
+ Runtime.set_result_name_from_file(args.input)
10
11
 
11
-
12
- def main(args):
13
- sequence = args.input
14
- # Add your processing logic here
15
- print(f'Received sequence: {sequence}')
16
-
17
-
18
- if __name__ == '__main__':
19
- args = parse_args()
20
- Runtime.set_result_name_prefix_from_fasta(args.input)
21
- main(args)
12
+ print(f'Processing input file {args.input}...')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pybiolib
3
- Version: 1.2.883
3
+ Version: 1.2.897
4
4
  Summary: BioLib Python Client
5
5
  License: MIT
6
6
  Keywords: biolib
@@ -22,7 +22,7 @@ biolib/_internal/llm_instructions/.github/instructions/style-react-ts.instructio
22
22
  biolib/_internal/llm_instructions/.github/prompts/biolib_app_inputs.prompt.md,sha256=SMzXZImdID0yKjhE1fG54VrHdD8IVuwRxRKsMF-KjWs,697
23
23
  biolib/_internal/llm_instructions/.github/prompts/biolib_run_apps.prompt.md,sha256=-t1bmGr3zEFa6lKHaLcI98yq4Sg1TCMW8xbelNSHaOA,696
24
24
  biolib/_internal/llm_instructions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- biolib/_internal/push_application.py,sha256=OwabiLPK8P_py3GavIzhYqcQL7hZ6XPKDrhSJUSxeRs,18023
25
+ biolib/_internal/push_application.py,sha256=2XbQM2BWIuXX_zKIPPlbsEhtIoF_wBgbn2PtVnwqjUA,18203
26
26
  biolib/_internal/runtime.py,sha256=BiHl4klUHr36MCpqKaUso4idHeBZfPAahLYRQrabFqA,486
27
27
  biolib/_internal/templates/__init__.py,sha256=NVbhLUMC8HITzkLvP88Qu7FHaL-SvQord-DX3gh1Ykk,24
28
28
  biolib/_internal/templates/init_template/.biolib/config.yml,sha256=y4ndTgbFvUE1UiGcIOqogT2Wm8jahGffeyU5rlCEltQ,427
@@ -30,7 +30,7 @@ biolib/_internal/templates/init_template/.github/workflows/biolib.yml,sha256=sph
30
30
  biolib/_internal/templates/init_template/.gitignore,sha256=dR_jhtT0boUspgk3S5PPUwuO0o8gKGIbdwu8IH638CY,20
31
31
  biolib/_internal/templates/init_template/Dockerfile,sha256=Wv2r9aiazkL1wOf_BT1f5Kx_-txfrqSkYTtWI8HGdL8,169
32
32
  biolib/_internal/templates/init_template/requirements.txt,sha256=2GnBHsKg4tX5F06Z4YeLuId6jQO3-HGTITsaVBTDG0Y,42
33
- biolib/_internal/templates/init_template/run.py,sha256=GS2qGGmFGIthdxdSxZbGktwZc8x3Q2IVLubpp7hEROw,529
33
+ biolib/_internal/templates/init_template/run.py,sha256=oat-Vzcz4XZilrTtgy8CzfltBAa5v6iduGof4Tuulhg,402
34
34
  biolib/_internal/templates/init_template/run.sh,sha256=CF25MYW8vNcZee6_Lydg0o5JDWG0YbrSvFHhMJ5I6x0,39
35
35
  biolib/_internal/templates/templates.py,sha256=-o0VdRMwPhnzL4VlCe3BZYl1aI9HLKtOmNjs6gu9fIQ,101
36
36
  biolib/_internal/tree_utils.py,sha256=_Q_6_NDtIiROcefymqxEVddjqti6Mt3OZ4U0GcDW61s,3904
@@ -141,8 +141,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
141
141
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
142
142
  biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
143
143
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
144
- pybiolib-1.2.883.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
145
- pybiolib-1.2.883.dist-info/METADATA,sha256=SpFwDiscPum6qx9WgKbEzFGSBnMntarbRXNVGXSW0I8,1570
146
- pybiolib-1.2.883.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
147
- pybiolib-1.2.883.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
148
- pybiolib-1.2.883.dist-info/RECORD,,
144
+ pybiolib-1.2.897.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
145
+ pybiolib-1.2.897.dist-info/METADATA,sha256=1uDEFqNE52A_jRETKr_IfRWhJbqDhXO6gsXHSeEWa8U,1570
146
+ pybiolib-1.2.897.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
147
+ pybiolib-1.2.897.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
148
+ pybiolib-1.2.897.dist-info/RECORD,,