accli 0.7.10__tar.gz → 0.7.11__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.
- {accli-0.7.10 → accli-0.7.11}/PKG-INFO +1 -1
- {accli-0.7.10 → accli-0.7.11}/accli/AcceleratorJobProjectService.py +6 -4
- {accli-0.7.10 → accli-0.7.11}/accli/AcceleratorTaskDispatcher.py +3 -1
- {accli-0.7.10 → accli-0.7.11}/accli/AcceleratorTerminalCliProjectService.py +3 -1
- {accli-0.7.10 → accli-0.7.11}/accli/_version.py +1 -1
- {accli-0.7.10 → accli-0.7.11}/accli/cli.py +7 -4
- {accli-0.7.10 → accli-0.7.11}/accli.egg-info/PKG-INFO +1 -1
- {accli-0.7.10 → accli-0.7.11}/LICENSE +0 -0
- {accli-0.7.10 → accli-0.7.11}/README.md +0 -0
- {accli-0.7.10 → accli-0.7.11}/accli/CsvRegionalTimeseriesValidator.py +0 -0
- {accli-0.7.10 → accli-0.7.11}/accli/__init__.py +0 -0
- {accli-0.7.10 → accli-0.7.11}/accli/__main__.py +0 -0
- {accli-0.7.10 → accli-0.7.11}/accli/common.py +0 -0
- {accli-0.7.10 → accli-0.7.11}/accli/token.py +0 -0
- {accli-0.7.10 → accli-0.7.11}/accli.egg-info/SOURCES.txt +0 -0
- {accli-0.7.10 → accli-0.7.11}/accli.egg-info/dependency_links.txt +0 -0
- {accli-0.7.10 → accli-0.7.11}/accli.egg-info/entry_points.txt +0 -0
- {accli-0.7.10 → accli-0.7.11}/accli.egg-info/requires.txt +0 -0
- {accli-0.7.10 → accli-0.7.11}/accli.egg-info/top_level.txt +0 -0
- {accli-0.7.10 → accli-0.7.11}/pyproject.toml +0 -0
- {accli-0.7.10 → accli-0.7.11}/setup.cfg +0 -0
|
@@ -12,6 +12,8 @@ from typing import List, Tuple
|
|
|
12
12
|
|
|
13
13
|
from accli.common import todict
|
|
14
14
|
|
|
15
|
+
ACCLI_DEBUG = os.environ.get('ACCLI_DEBUG', False)
|
|
16
|
+
|
|
15
17
|
class AccAPIError(Exception):
|
|
16
18
|
pass
|
|
17
19
|
|
|
@@ -38,7 +40,7 @@ class AcceleratorJobProjectService:
|
|
|
38
40
|
self,
|
|
39
41
|
user_token,
|
|
40
42
|
server_url='http://accelerator-api.iiasa.ac.at',
|
|
41
|
-
verify_cert=
|
|
43
|
+
verify_cert=(not ACCLI_DEBUG)
|
|
42
44
|
):
|
|
43
45
|
|
|
44
46
|
self.user_token = user_token
|
|
@@ -739,7 +741,7 @@ class Fs:
|
|
|
739
741
|
accelerator_job_service = AcceleratorJobProjectService(
|
|
740
742
|
user_token,
|
|
741
743
|
server_url=server_url,
|
|
742
|
-
verify_cert=
|
|
744
|
+
verify_cert=(not ACCLI_DEBUG)
|
|
743
745
|
)
|
|
744
746
|
|
|
745
747
|
accelerator_job_service.add_filestream_as_job_output(
|
|
@@ -763,7 +765,7 @@ class Fs:
|
|
|
763
765
|
accelerator_job_service = AcceleratorJobProjectService(
|
|
764
766
|
user_token,
|
|
765
767
|
server_url=server_url,
|
|
766
|
-
verify_cert=
|
|
768
|
+
verify_cert=(not ACCLI_DEBUG)
|
|
767
769
|
)
|
|
768
770
|
|
|
769
771
|
return accelerator_job_service.get_file_url_from_repo(
|
|
@@ -805,7 +807,7 @@ class Fs:
|
|
|
805
807
|
accelerator_job_service = AcceleratorJobProjectService(
|
|
806
808
|
user_token,
|
|
807
809
|
server_url=server_url,
|
|
808
|
-
verify_cert=
|
|
810
|
+
verify_cert=(not ACCLI_DEBUG)
|
|
809
811
|
)
|
|
810
812
|
|
|
811
813
|
return accelerator_job_service.enumerate_files_by_prefix(
|
|
@@ -15,6 +15,8 @@ from accli.token import (
|
|
|
15
15
|
get_project_slug
|
|
16
16
|
)
|
|
17
17
|
|
|
18
|
+
ACCLI_DEBUG = os.environ.get('ACCLI_DEBUG', False)
|
|
19
|
+
|
|
18
20
|
FOLDER_JOB_REPO_URL = 'https://github.com/IIASA-Accelerator/wkube-job.git'
|
|
19
21
|
|
|
20
22
|
|
|
@@ -73,7 +75,7 @@ def push_folder_job(dir):
|
|
|
73
75
|
term_cli_project_service = AcceleratorTerminalCliProjectService(
|
|
74
76
|
user_token=access_token,
|
|
75
77
|
server_url=server_url,
|
|
76
|
-
verify_cert=
|
|
78
|
+
verify_cert=(not ACCLI_DEBUG)
|
|
77
79
|
)
|
|
78
80
|
|
|
79
81
|
repo_dir = tempfile.mkdtemp()
|
|
@@ -9,6 +9,8 @@ from rich.progress import Progress
|
|
|
9
9
|
|
|
10
10
|
from accli.common import todict
|
|
11
11
|
|
|
12
|
+
ACCLI_DEBUG = os.environ.get('ACCLI_DEBUG', False)
|
|
13
|
+
|
|
12
14
|
class AccAPIError(Exception):
|
|
13
15
|
|
|
14
16
|
def __init__(self, message, response, status_code):
|
|
@@ -33,7 +35,7 @@ class AcceleratorTerminalCliProjectService:
|
|
|
33
35
|
self,
|
|
34
36
|
user_token,
|
|
35
37
|
server_url,
|
|
36
|
-
verify_cert=
|
|
38
|
+
verify_cert=(not ACCLI_DEBUG)
|
|
37
39
|
):
|
|
38
40
|
|
|
39
41
|
self.user_token = user_token
|
|
@@ -20,6 +20,8 @@ from rich.progress import Progress, SpinnerColumn, TextColumn, ProgressColumn, B
|
|
|
20
20
|
|
|
21
21
|
warnings.filterwarnings('ignore')
|
|
22
22
|
|
|
23
|
+
ACCLI_DEBUG = os.environ.get('ACCLI_DEBUG', False)
|
|
24
|
+
|
|
23
25
|
app = typer.Typer(
|
|
24
26
|
add_completion=False,
|
|
25
27
|
pretty_exceptions_show_locals=False,
|
|
@@ -61,7 +63,8 @@ def login(
|
|
|
61
63
|
|
|
62
64
|
token_response = requests.post(
|
|
63
65
|
f"{server}/v1/oauth/device/token/",
|
|
64
|
-
json={"device_authorization_code": device_authorization_code}
|
|
66
|
+
json={"device_authorization_code": device_authorization_code},
|
|
67
|
+
verify=(not ACCLI_DEBUG)
|
|
65
68
|
)
|
|
66
69
|
|
|
67
70
|
print("")
|
|
@@ -83,7 +86,7 @@ def upload_file(project_slug, accelerator_filename, local_filepath, progress, ta
|
|
|
83
86
|
term_cli_project_service = AcceleratorTerminalCliProjectService(
|
|
84
87
|
user_token=access_token,
|
|
85
88
|
server_url=server_url,
|
|
86
|
-
verify_cert=
|
|
89
|
+
verify_cert=(not ACCLI_DEBUG)
|
|
87
90
|
)
|
|
88
91
|
|
|
89
92
|
stat = term_cli_project_service.get_file_stat(project_slug, f"{folder_name}/{accelerator_filename}")
|
|
@@ -161,7 +164,7 @@ def validate(
|
|
|
161
164
|
term_cli_project_service = AcceleratorTerminalCliProjectService(
|
|
162
165
|
user_token="",
|
|
163
166
|
server_url=server,
|
|
164
|
-
verify_cert=
|
|
167
|
+
verify_cert=(not ACCLI_DEBUG)
|
|
165
168
|
)
|
|
166
169
|
|
|
167
170
|
validate = CsvRegionalTimeseriesValidator(
|
|
@@ -187,7 +190,7 @@ def dispatch(
|
|
|
187
190
|
term_cli_project_service = AcceleratorTerminalCliProjectService(
|
|
188
191
|
user_token=access_token,
|
|
189
192
|
server_url=server_url,
|
|
190
|
-
verify_cert=
|
|
193
|
+
verify_cert=(not ACCLI_DEBUG)
|
|
191
194
|
)
|
|
192
195
|
|
|
193
196
|
base_dir = os.getcwd()
|
|
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
|