vswmc-cli 2.2.3.dev416__tar.gz → 2.2.3.dev423__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.
- {vswmc_cli-2.2.3.dev416/vswmc_cli.egg-info → vswmc_cli-2.2.3.dev423}/PKG-INFO +1 -1
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/setup.py +1 -1
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/ls.py +1 -19
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/client.py +0 -12
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423/vswmc_cli.egg-info}/PKG-INFO +1 -1
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/LICENSE +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/MANIFEST.in +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/README.md +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/pyproject.toml +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/setup.cfg +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/__init__.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/__init__.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/__main__.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/cp.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/logs.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/models.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/products.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/ps.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/rm.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/run.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/save.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/simulations.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/stop.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/cli/utils.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/core/__init__.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/core/auth.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/core/exceptions.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/core/helpers.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc/sockjs.py +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc_cli.egg-info/SOURCES.txt +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc_cli.egg-info/dependency_links.txt +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc_cli.egg-info/entry_points.txt +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc_cli.egg-info/not-zip-safe +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc_cli.egg-info/requires.txt +0 -0
- {vswmc_cli-2.2.3.dev416 → vswmc_cli-2.2.3.dev423}/vswmc_cli.egg-info/top_level.txt +0 -0
|
@@ -4,24 +4,6 @@ from vswmc.cli import utils
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
def do_ls(args):
|
|
7
|
-
client = utils.create_client(args)
|
|
8
|
-
run = client.get_run(args.run)
|
|
9
|
-
rows = []
|
|
10
|
-
for result in run["results"]:
|
|
11
|
-
if args.l:
|
|
12
|
-
rows.append(
|
|
13
|
-
[
|
|
14
|
-
str(result["size"]),
|
|
15
|
-
result["updated"],
|
|
16
|
-
result["path"],
|
|
17
|
-
]
|
|
18
|
-
)
|
|
19
|
-
else:
|
|
20
|
-
rows.append([result["path"]])
|
|
21
|
-
utils.print_table(rows)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
def do_ls_new(args):
|
|
25
7
|
client = utils.create_client(args)
|
|
26
8
|
results = client.list_run_results(args.run)
|
|
27
9
|
rows = []
|
|
@@ -39,6 +21,6 @@ def do_ls_new(args):
|
|
|
39
21
|
|
|
40
22
|
|
|
41
23
|
def configure_parser(parser):
|
|
42
|
-
parser.set_defaults(func=
|
|
24
|
+
parser.set_defaults(func=do_ls)
|
|
43
25
|
parser.add_argument("run", metavar="RUN", help="The run to query")
|
|
44
26
|
parser.add_argument("-l", action="store_true", help="Print long listing")
|
|
@@ -113,18 +113,6 @@ class VswmcClient(object):
|
|
|
113
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
|
-
|
|
128
116
|
def download_logs(self, run):
|
|
129
117
|
path = "{}/runs/{}/log".format(self.api_root, run)
|
|
130
118
|
return self._request("get", path=path, params={"raw": "yes"}).content
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|