pybiolib 1.2.695__py3-none-any.whl → 1.2.698__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/cli/init.py CHANGED
@@ -15,12 +15,17 @@ def init() -> None:
15
15
  if os.path.exists(config_file_path):
16
16
  print(f'The file "{config_file_path}" already exists', file=sys.stderr)
17
17
  exit(1)
18
- else:
18
+
19
+ try:
20
+ project_name = input('Enter a name for your project: ')
21
+
19
22
  os.makedirs(f'{cwd}/.biolib', exist_ok=True)
20
23
  with open(config_file_path, 'w') as config_file:
21
24
  config_file.write(templates.example_app.CONFIG_YML)
22
25
 
23
- if not os.path.exists(readme_path):
24
- with open(readme_path, 'w') as readme_file:
25
- project_name = input('Enter a name for your project: ')
26
- readme_file.write(f'# {project_name}\n')
26
+ if not os.path.exists(readme_path):
27
+ with open(readme_path, 'w') as readme_file:
28
+ readme_file.write(f'# {project_name}\n')
29
+ except KeyboardInterrupt:
30
+ print('\nInit command cancelled.', file=sys.stderr)
31
+ exit(1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pybiolib
3
- Version: 1.2.695
3
+ Version: 1.2.698
4
4
  Summary: BioLib Python Client
5
5
  License: MIT
6
6
  Keywords: biolib
@@ -67,7 +67,7 @@ biolib/cli/__init__.py,sha256=IHC2bEyA27pvgp-18SGfFVJOP456elanz7suDP8D084,1316
67
67
  biolib/cli/auth.py,sha256=rpWGmXs6Fz6CGrO9K8ibPRszOdXG78Vig_boKaVCD9A,2082
68
68
  biolib/cli/data_record.py,sha256=t8DfJK2EZ_SNZ9drDA_N5Jqy8DNwf9f5SlFrIaOvtv0,3501
69
69
  biolib/cli/download_container.py,sha256=HIZVHOPmslGE5M2Dsp9r2cCkAEJx__vcsDz5Wt5LRos,483
70
- biolib/cli/init.py,sha256=wQOfii_au-d30Hp7DdH-WVw-WVraKvA_zY4za1w7DE8,821
70
+ biolib/cli/init.py,sha256=GBMSrRAgNISqyqyisF2cYrKioTXJqFgkwASgA8VLnXc,936
71
71
  biolib/cli/lfs.py,sha256=z2qHUwink85mv9yDgifbVKkVwuyknGhMDTfly_gLKJM,4151
72
72
  biolib/cli/push.py,sha256=RxB4RHpjtL27Fpq7WRGojJ53R9jUuE1Cq9_NmHFzNsM,1306
73
73
  biolib/cli/run.py,sha256=MCo0ZqW2pHBxOoCI3i5gAx5D0auW9fmxHqkAF4TRhms,2134
@@ -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.695.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
130
- pybiolib-1.2.695.dist-info/METADATA,sha256=s2pT0xaDCsV1lBAcfsLyCiSLFXx61Wtjtpc3GKqKm58,1570
131
- pybiolib-1.2.695.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
132
- pybiolib-1.2.695.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
133
- pybiolib-1.2.695.dist-info/RECORD,,
129
+ pybiolib-1.2.698.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
130
+ pybiolib-1.2.698.dist-info/METADATA,sha256=R6zzOx4b6382-cyNrTutRh3p-Ld6gU1Pm31r6XHvKYk,1570
131
+ pybiolib-1.2.698.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
132
+ pybiolib-1.2.698.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
133
+ pybiolib-1.2.698.dist-info/RECORD,,