accli 0.5.4__tar.gz → 0.5.6__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.5.4 → accli-0.5.6}/PKG-INFO +1 -1
- {accli-0.5.4 → accli-0.5.6}/accli/AcceleratorJobProjectService.py +13 -1
- {accli-0.5.4 → accli-0.5.6}/accli/_version.py +1 -1
- {accli-0.5.4 → accli-0.5.6}/accli.egg-info/PKG-INFO +1 -1
- {accli-0.5.4 → accli-0.5.6}/LICENSE +0 -0
- {accli-0.5.4 → accli-0.5.6}/README.md +0 -0
- {accli-0.5.4 → accli-0.5.6}/accli/AcceleratorTaskDispatcher.py +0 -0
- {accli-0.5.4 → accli-0.5.6}/accli/AcceleratorTerminalCliProjectService.py +0 -0
- {accli-0.5.4 → accli-0.5.6}/accli/CsvRegionalTimeseriesValidator.py +0 -0
- {accli-0.5.4 → accli-0.5.6}/accli/__init__.py +0 -0
- {accli-0.5.4 → accli-0.5.6}/accli/__main__.py +0 -0
- {accli-0.5.4 → accli-0.5.6}/accli/cli.py +0 -0
- {accli-0.5.4 → accli-0.5.6}/accli/common.py +0 -0
- {accli-0.5.4 → accli-0.5.6}/accli/token.py +0 -0
- {accli-0.5.4 → accli-0.5.6}/accli.egg-info/SOURCES.txt +0 -0
- {accli-0.5.4 → accli-0.5.6}/accli.egg-info/dependency_links.txt +0 -0
- {accli-0.5.4 → accli-0.5.6}/accli.egg-info/entry_points.txt +0 -0
- {accli-0.5.4 → accli-0.5.6}/accli.egg-info/requires.txt +0 -0
- {accli-0.5.4 → accli-0.5.6}/accli.egg-info/top_level.txt +0 -0
- {accli-0.5.4 → accli-0.5.6}/pyproject.toml +0 -0
- {accli-0.5.4 → accli-0.5.6}/setup.cfg +0 -0
|
@@ -54,6 +54,18 @@ class AcceleratorJobProjectService:
|
|
|
54
54
|
|
|
55
55
|
def http_client_request(self, *args, **kwargs):
|
|
56
56
|
|
|
57
|
+
if urllib3.__version__.startswith('1.'):
|
|
58
|
+
if 'json' in kwargs:
|
|
59
|
+
json_dict = kwargs.pop('json')
|
|
60
|
+
|
|
61
|
+
assert isinstance(json_dict, dict), (
|
|
62
|
+
f"urllib request: json keyword argument should be dict."
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
encoded_data = json.dumps(json_dict).encode('utf-8')
|
|
66
|
+
|
|
67
|
+
kwargs['body'] = encoded_data
|
|
68
|
+
|
|
57
69
|
res = self.http_client.request(*args, **kwargs)
|
|
58
70
|
|
|
59
71
|
if str(res.status)[0] in ['4', '5']:
|
|
@@ -616,7 +628,7 @@ class Fs:
|
|
|
616
628
|
if not source_path.exists():
|
|
617
629
|
raise ValueError("Source path does not exist")
|
|
618
630
|
|
|
619
|
-
with open(source, '
|
|
631
|
+
with open(source, 'rb') as fstream:
|
|
620
632
|
if (user_token and server_url):
|
|
621
633
|
Fs.write_stream_remote(fstream, dest_filepath, user_token, server_url)
|
|
622
634
|
else:
|
|
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
|