oc-cdtapi 3.31.2__py3-none-any.whl → 3.32.1__py3-none-any.whl
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.
- oc_cdtapi/API.py +9 -0
- {oc_cdtapi-3.31.2.dist-info → oc_cdtapi-3.32.1.dist-info}/METADATA +1 -1
- {oc_cdtapi-3.31.2.dist-info → oc_cdtapi-3.32.1.dist-info}/RECORD +7 -7
- {oc_cdtapi-3.31.2.dist-info → oc_cdtapi-3.32.1.dist-info}/WHEEL +1 -1
- {oc_cdtapi-3.31.2.data → oc_cdtapi-3.32.1.data}/scripts/nexus.py +0 -0
- {oc_cdtapi-3.31.2.dist-info → oc_cdtapi-3.32.1.dist-info}/licenses/LICENSE +0 -0
- {oc_cdtapi-3.31.2.dist-info → oc_cdtapi-3.32.1.dist-info}/top_level.txt +0 -0
oc_cdtapi/API.py
CHANGED
|
@@ -3,6 +3,7 @@ import doctest
|
|
|
3
3
|
import os
|
|
4
4
|
import shutil # this required to copy data between file objects
|
|
5
5
|
import posixpath
|
|
6
|
+
import urllib3
|
|
6
7
|
|
|
7
8
|
import requests
|
|
8
9
|
|
|
@@ -83,6 +84,14 @@ class HttpAPI(object):
|
|
|
83
84
|
|
|
84
85
|
self.root = root
|
|
85
86
|
self.web = requests.Session()
|
|
87
|
+
adapter = requests.adapters.HTTPAdapter(max_retries=urllib3.Retry(
|
|
88
|
+
raise_on_status=False,
|
|
89
|
+
total=2,
|
|
90
|
+
status_forcelist=[401],
|
|
91
|
+
allowed_methods=["HEAD", "GET", "PUT", "DELETE", "OPTIONS", "POST"]
|
|
92
|
+
))
|
|
93
|
+
self.web.mount("https://", adapter)
|
|
94
|
+
self.web.mount("http://", adapter)
|
|
86
95
|
|
|
87
96
|
if user and not anonymous:
|
|
88
97
|
self.web.auth = (user, auth)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
oc_cdtapi/API.py,sha256=
|
|
1
|
+
oc_cdtapi/API.py,sha256=bgYcRU1PwI_FIRaOdfZZiLf98NofH_OBgW563WBYL4c,12758
|
|
2
2
|
oc_cdtapi/Dbsm2API.py,sha256=WDBst1dCAmDVU9d9Ogzwp2nkjtKZ4thU2xG4sAPI_Nk,9963
|
|
3
3
|
oc_cdtapi/DevPIAPI.py,sha256=9WND9ld66eHmC5qoLJq3KDYSoO-pP69UqOQsGZNLZYg,1835
|
|
4
4
|
oc_cdtapi/DmsAPI.py,sha256=eNFdwQLhCbPvHB5SUtP4QcZZtSdjkgt_Cxn3oQ3iJ5s,15605
|
|
@@ -12,9 +12,9 @@ oc_cdtapi/RundeckAPI.py,sha256=O3LmcFaHSz8UqeUyIHTTEMJncDD191Utd-iZaeJay2s,24243
|
|
|
12
12
|
oc_cdtapi/TestServer.py,sha256=HV97UWg2IK4gOYAp9yaMdwFUWsw9v66MxyZdI3qQctA,2715
|
|
13
13
|
oc_cdtapi/VaultAPI.py,sha256=P-x_PsWe_S0mGUKTCmR1KhUjdfs7GmyaltjGQcnWj_s,2967
|
|
14
14
|
oc_cdtapi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
oc_cdtapi-3.
|
|
16
|
-
oc_cdtapi-3.
|
|
17
|
-
oc_cdtapi-3.
|
|
18
|
-
oc_cdtapi-3.
|
|
19
|
-
oc_cdtapi-3.
|
|
20
|
-
oc_cdtapi-3.
|
|
15
|
+
oc_cdtapi-3.32.1.data/scripts/nexus.py,sha256=4teqZ_KtCSrwHDJVgA7lkreteod4Xt5XJFZNbwb7E6E,6858
|
|
16
|
+
oc_cdtapi-3.32.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
17
|
+
oc_cdtapi-3.32.1.dist-info/METADATA,sha256=SGHrOyGV65c7BmTNp347uZwDmMjQY__IDyB46TMmhbo,504
|
|
18
|
+
oc_cdtapi-3.32.1.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
19
|
+
oc_cdtapi-3.32.1.dist-info/top_level.txt,sha256=d4-5-D-0CSeSXYuLCP7-nIFCpjkfmJr-Y_muzds8iVU,10
|
|
20
|
+
oc_cdtapi-3.32.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|