accli 0.5.6__tar.gz → 0.5.7__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.6 → accli-0.5.7}/PKG-INFO +1 -1
- {accli-0.5.6 → accli-0.5.7}/accli/AcceleratorTerminalCliProjectService.py +13 -0
- {accli-0.5.6 → accli-0.5.7}/accli/_version.py +1 -1
- {accli-0.5.6 → accli-0.5.7}/accli.egg-info/PKG-INFO +1 -1
- {accli-0.5.6 → accli-0.5.7}/LICENSE +0 -0
- {accli-0.5.6 → accli-0.5.7}/README.md +0 -0
- {accli-0.5.6 → accli-0.5.7}/accli/AcceleratorJobProjectService.py +0 -0
- {accli-0.5.6 → accli-0.5.7}/accli/AcceleratorTaskDispatcher.py +0 -0
- {accli-0.5.6 → accli-0.5.7}/accli/CsvRegionalTimeseriesValidator.py +0 -0
- {accli-0.5.6 → accli-0.5.7}/accli/__init__.py +0 -0
- {accli-0.5.6 → accli-0.5.7}/accli/__main__.py +0 -0
- {accli-0.5.6 → accli-0.5.7}/accli/cli.py +0 -0
- {accli-0.5.6 → accli-0.5.7}/accli/common.py +0 -0
- {accli-0.5.6 → accli-0.5.7}/accli/token.py +0 -0
- {accli-0.5.6 → accli-0.5.7}/accli.egg-info/SOURCES.txt +0 -0
- {accli-0.5.6 → accli-0.5.7}/accli.egg-info/dependency_links.txt +0 -0
- {accli-0.5.6 → accli-0.5.7}/accli.egg-info/entry_points.txt +0 -0
- {accli-0.5.6 → accli-0.5.7}/accli.egg-info/requires.txt +0 -0
- {accli-0.5.6 → accli-0.5.7}/accli.egg-info/top_level.txt +0 -0
- {accli-0.5.6 → accli-0.5.7}/pyproject.toml +0 -0
- {accli-0.5.6 → accli-0.5.7}/setup.cfg +0 -0
|
@@ -50,6 +50,19 @@ class AcceleratorTerminalCliProjectService:
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
def http_client_request(self, *args, **kwargs):
|
|
53
|
+
|
|
54
|
+
if urllib3.__version__.startswith('1.'):
|
|
55
|
+
if 'json' in kwargs:
|
|
56
|
+
json_dict = kwargs.pop('json')
|
|
57
|
+
|
|
58
|
+
assert isinstance(json_dict, dict), (
|
|
59
|
+
f"urllib request: json keyword argument should be dict."
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
encoded_data = json.dumps(json_dict).encode('utf-8')
|
|
63
|
+
|
|
64
|
+
kwargs['body'] = encoded_data
|
|
65
|
+
|
|
53
66
|
res = self.http_client.request(*args, **kwargs)
|
|
54
67
|
|
|
55
68
|
if str(res.status)[0] in ['4', '5']:
|
|
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
|