vswmc-cli 2.2.1.dev357__tar.gz → 2.2.3.dev416__tar.gz

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.
Files changed (35) hide show
  1. {vswmc_cli-2.2.1.dev357/vswmc_cli.egg-info → vswmc_cli-2.2.3.dev416}/PKG-INFO +1 -1
  2. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/setup.py +1 -1
  3. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/cp.py +1 -1
  4. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/ls.py +2 -2
  5. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/save.py +8 -7
  6. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/client.py +21 -9
  7. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416/vswmc_cli.egg-info}/PKG-INFO +1 -1
  8. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/LICENSE +0 -0
  9. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/MANIFEST.in +0 -0
  10. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/README.md +0 -0
  11. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/pyproject.toml +0 -0
  12. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/setup.cfg +0 -0
  13. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/__init__.py +0 -0
  14. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/__init__.py +0 -0
  15. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/__main__.py +0 -0
  16. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/logs.py +0 -0
  17. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/models.py +0 -0
  18. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/products.py +0 -0
  19. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/ps.py +0 -0
  20. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/rm.py +0 -0
  21. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/run.py +0 -0
  22. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/simulations.py +0 -0
  23. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/stop.py +0 -0
  24. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/cli/utils.py +0 -0
  25. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/core/__init__.py +0 -0
  26. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/core/auth.py +0 -0
  27. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/core/exceptions.py +0 -0
  28. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/core/helpers.py +0 -0
  29. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc/sockjs.py +0 -0
  30. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc_cli.egg-info/SOURCES.txt +0 -0
  31. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc_cli.egg-info/dependency_links.txt +0 -0
  32. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc_cli.egg-info/entry_points.txt +0 -0
  33. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc_cli.egg-info/not-zip-safe +0 -0
  34. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc_cli.egg-info/requires.txt +0 -0
  35. {vswmc_cli-2.2.1.dev357 → vswmc_cli-2.2.3.dev416}/vswmc_cli.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vswmc-cli
3
- Version: 2.2.1.dev357
3
+ Version: 2.2.3.dev416
4
4
  Summary: VSWMC Command-Line Tools
5
5
  Home-page: https://spaceweather.hpc.kuleuven.be
6
6
  Author: Rays of Space
@@ -11,7 +11,7 @@ packages = [
11
11
 
12
12
  setuptools.setup(
13
13
  name="vswmc-cli",
14
- version="2.2.1.dev357",
14
+ version="2.2.3.dev416",
15
15
  description="VSWMC Command-Line Tools",
16
16
  long_description=readme,
17
17
  long_description_content_type="text/markdown",
@@ -26,7 +26,7 @@ def do_cp(args):
26
26
  def do_cp_new(args):
27
27
  client = utils.create_client(args)
28
28
  run, src_file = args.src.split(":")
29
- content = client.get_run_output_presign_content(run, src_file)
29
+ content = client.get_run_result_presign_content(run, src_file)
30
30
  _, src_filename = os.path.split(src_file)
31
31
 
32
32
  if os.path.isdir(args.dst):
@@ -23,9 +23,9 @@ def do_ls(args):
23
23
 
24
24
  def do_ls_new(args):
25
25
  client = utils.create_client(args)
26
- outputs = client.list_run_outputs(args.run)
26
+ results = client.list_run_results(args.run)
27
27
  rows = []
28
- for result in outputs:
28
+ for result in results:
29
29
  if args.l:
30
30
  rows.append(
31
31
  [
@@ -17,14 +17,15 @@ def do_save(args):
17
17
 
18
18
  def do_save_new(args):
19
19
  client = utils.create_client(args)
20
- outputs = client.list_run_outputs(args.run)
21
- if not outputs:
22
- print("No outputs available for run {}".format(args.run))
20
+ results = client.list_run_results(args.run)
21
+ if not results:
22
+ print("No results available for run {}".format(args.run))
23
23
  return
24
- os.path.makedirs(args.run, exist_ok=True)
25
- for output in outputs:
26
- content = client.get_run_output_presign_content(args.run, output["path"])
27
- target_file = os.path.join(args.run, output["path"])
24
+ os.makedirs(args.run, exist_ok=True)
25
+ for result in results:
26
+ content = client.get_run_result_presign_content(args.run, result["path"])
27
+ target_file = os.path.join(args.run, result["path"])
28
+ os.makedirs(os.path.dirname(target_file), exist_ok=True)
28
29
  print("Saving {}".format(target_file))
29
30
  with open(target_file, "wb") as f:
30
31
  f.write(content)
@@ -97,22 +97,34 @@ class VswmcClient(object):
97
97
  path = "{}/runs/{}".format(self.api_root, run)
98
98
  return self._request("get", path=path).json()
99
99
 
100
- def list_run_outputs(self, run):
101
- path = "{}/runs/{}/outputs".format(self.api_root, run)
100
+ def list_run_results(self, run):
101
+ path = "{}/runs/{}/results".format(self.api_root, run)
102
102
  return self._request("get", path=path).json()
103
103
 
104
- def get_run_output(self, run, name):
105
- path = "{}/runs/{}/outputs/{}".format(self.api_root, run, name)
104
+ def get_run_result(self, run, name):
105
+ path = "{}/runs/{}/results/{}".format(self.api_root, run, name)
106
106
  return self._request("get", path=path).content
107
107
 
108
- def get_run_output_presign_url(self, run, name):
109
- path = "{}/runs/{}/outputs/{}/presign".format(self.api_root, run, name)
108
+ def get_run_result_presign_url(self, run, name):
109
+ path = "{}/runs/{}/results/{}/presign".format(self.api_root, run, name)
110
110
  return self._request("get", path=path).json()
111
111
 
112
- def get_run_output_presign_content(self, run, name):
113
- presign = self.get_run_output_presign_url(run, name)
112
+ def get_run_result_presign_content(self, run, name):
113
+ presign = self.get_run_result_presign_url(run, name)
114
114
  return requests.get(url=presign["url"]).content
115
115
 
116
+ def list_run_outputs(self, run):
117
+ return self.list_run_results(run)
118
+
119
+ def get_run_output(self, run, name):
120
+ return self.get_run_result(run, name)
121
+
122
+ def get_run_output_presign_url(self, run, name):
123
+ return self.get_run_result_presign_url(run, name)
124
+
125
+ def get_run_output_presign_content(self, run, name):
126
+ return self.get_run_result_presign_content(run, name)
127
+
116
128
  def download_logs(self, run):
117
129
  path = "{}/runs/{}/log".format(self.api_root, run)
118
130
  return self._request("get", path=path, params={"raw": "yes"}).content
@@ -122,7 +134,7 @@ class VswmcClient(object):
122
134
  return self._request("get", path=path).content
123
135
 
124
136
  def download_results(self, run):
125
- path = "{}/runs/{}/results".format(self.api_root, run)
137
+ path = "{}/runs/{}/results/archive".format(self.api_root, run)
126
138
  return self._request("get", path=path).content
127
139
 
128
140
  def follow_logs(self, run, on_data):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vswmc-cli
3
- Version: 2.2.1.dev357
3
+ Version: 2.2.3.dev416
4
4
  Summary: VSWMC Command-Line Tools
5
5
  Home-page: https://spaceweather.hpc.kuleuven.be
6
6
  Author: Rays of Space