NGPIris 5.4.2.dev2__py3-none-any.whl → 5.4.2.dev3__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.
NGPIris/cli/__init__.py CHANGED
@@ -41,19 +41,32 @@ def add_trailing_slash(path : str) -> str:
41
41
  help = "Get the debug log for running a command",
42
42
  is_flag = True
43
43
  )
44
+ @click.option(
45
+ "-tc",
46
+ "--transfer_config",
47
+ help = "Use a custom transfer config for uploads or downloads",
48
+ )
44
49
  @click.version_option(package_name = "NGPIris")
45
50
  @click.pass_context
46
- def cli(context : Context, credentials : str, debug : bool):
51
+ def cli(context : Context, credentials : str, debug : bool, transfer_config : str):
47
52
  """
48
53
  NGP Intelligence and Repository Interface Software, IRIS.
49
54
 
50
55
  CREDENTIALS refers to the path to the JSON credentials file.
51
56
  """
57
+
58
+ if transfer_config:
59
+ context.ensure_object(dict)
60
+ context.obj["hcph"] = HCPHandler(credentials, custom_config_path = transfer_config)
61
+ else:
62
+ context.ensure_object(dict)
63
+ context.obj["hcph"] = HCPHandler(credentials)
64
+
52
65
  if debug:
53
66
  set_stream_logger(name="")
54
-
55
- context.ensure_object(dict)
56
- context.obj["hcph"] = HCPHandler(credentials)
67
+ click.echo(
68
+ context.obj["hcph"].transfer_config.__dict__
69
+ )
57
70
 
58
71
  @cli.command()
59
72
  @click.argument("bucket")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: NGPIris
3
- Version: 5.4.2.dev2
3
+ Version: 5.4.2.dev3
4
4
  Author-email: Erik Brink <erik.brink@gu.se>, Isak Sylvin <isak.sylvin@gu.se>
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -1,5 +1,5 @@
1
1
  NGPIris/__init__.py,sha256=eHaeRGl1JQ_hjsazEd4oQCXOkdpSxLIzg-ipYAAaa-s,69
2
- NGPIris/cli/__init__.py,sha256=1jNxCeyQwHORd-0DO9Nx8PIwHsblrKX6NB3z9voeDcI,14058
2
+ NGPIris/cli/__init__.py,sha256=yZsTn2noSZTmg1BWPKwTklGTEIqMCIse4vZVN1TORaY,14459
3
3
  NGPIris/hci/__init__.py,sha256=qZRzN2JZp8uIw46TQiqJHMIkleiVDErSoZ3-v0O_cZU,38
4
4
  NGPIris/hci/exceptions.py,sha256=wUbpUwY8u1QtuSvnzlBuql9LgGsxBl207IGsHkCt-JQ,47
5
5
  NGPIris/hci/hci.py,sha256=-7RBWPGqlINVNsl-GbjuXkcLdIF5cs4cu3OFt2FJi1E,4321
@@ -13,9 +13,9 @@ NGPIris/parse_credentials/__init__.py,sha256=O9uq_F9uOtuW7giW-t10KV4VmTgfkvgaBEw
13
13
  NGPIris/parse_credentials/parse_credentials.py,sha256=E1NzQCMvjOa2mGLBkEYshZomNSxfSCkoc_iUhUfpBEM,2106
14
14
  NGPIris/utils/__init__.py,sha256=yPCEc1-_7r01dZ-31EKiA7Jova7ztX7XXuU95IKmKX8,59
15
15
  NGPIris/utils/utils.py,sha256=m9qwLuOoiqVNRy7B4raYNFJkigL_wE--PiWhyhVhHII,248
16
- ngpiris-5.4.2.dev2.dist-info/licenses/LICENSE,sha256=ZA2Q9u5AEkH_YoNNDRsz-DBJ6ZuL_foE7RsKFjXd4-c,18093
17
- ngpiris-5.4.2.dev2.dist-info/METADATA,sha256=rhidbuhMsAiZwtK0MKjzIXsrmYRaspHF8tw26Yg0_bA,7102
18
- ngpiris-5.4.2.dev2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
19
- ngpiris-5.4.2.dev2.dist-info/entry_points.txt,sha256=t8ADhe3ovPm9tW3XDZq1_vKmfHY98Ei_o6WioJobNzU,117
20
- ngpiris-5.4.2.dev2.dist-info/top_level.txt,sha256=954WCuIJkle_SMtr7MNPapiiLLAFhlKbcz6Bp89-2V0,8
21
- ngpiris-5.4.2.dev2.dist-info/RECORD,,
16
+ ngpiris-5.4.2.dev3.dist-info/licenses/LICENSE,sha256=ZA2Q9u5AEkH_YoNNDRsz-DBJ6ZuL_foE7RsKFjXd4-c,18093
17
+ ngpiris-5.4.2.dev3.dist-info/METADATA,sha256=Enz165Hot9u9r6c0e5OwwX_zCz5JgRFASMvYl8nbLT8,7102
18
+ ngpiris-5.4.2.dev3.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
19
+ ngpiris-5.4.2.dev3.dist-info/entry_points.txt,sha256=t8ADhe3ovPm9tW3XDZq1_vKmfHY98Ei_o6WioJobNzU,117
20
+ ngpiris-5.4.2.dev3.dist-info/top_level.txt,sha256=954WCuIJkle_SMtr7MNPapiiLLAFhlKbcz6Bp89-2V0,8
21
+ ngpiris-5.4.2.dev3.dist-info/RECORD,,