isrpa 0.9.0__py3-none-any.whl → 0.9.2__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.
isrpa/credentials.py
CHANGED
@@ -12,7 +12,8 @@ def store_key(key_name,key_value,user_name):
|
|
12
12
|
|
13
13
|
"""
|
14
14
|
address = os.environ.get("address", "192.168.12.249")
|
15
|
-
|
15
|
+
print(address)
|
16
|
+
url = f"http://192.168.12.241/console/api/user_credentials"
|
16
17
|
print(url)
|
17
18
|
headers = {
|
18
19
|
'Content-Type': 'application/json', # 说明请求体是 JSON 格式
|
@@ -33,7 +34,7 @@ def get_key(key_name, user_name):
|
|
33
34
|
user_name:用户名称
|
34
35
|
"""
|
35
36
|
address = os.environ.get("address", "192.168.12.249")
|
36
|
-
url = f"http://
|
37
|
+
url = f"http://192.168.12.241/console/api/user_credentials?certificate_key={key_name}&user_name={user_name}"
|
37
38
|
print(url)
|
38
39
|
response = requests.get(url)
|
39
40
|
if response.status_code != 200:
|
@@ -50,7 +51,7 @@ def delete_key(key_name,user_name):
|
|
50
51
|
user_name:用户名称
|
51
52
|
"""
|
52
53
|
address = os.environ.get("address", "192.168.12.249")
|
53
|
-
url = f"http://
|
54
|
+
url = f"http://192.168.12.241/console/api/user_credentials"
|
54
55
|
print(url)
|
55
56
|
headers = {
|
56
57
|
'Content-Type': 'application/json', # 说明请求体是 JSON 格式
|
@@ -69,7 +70,7 @@ def list(user_name):
|
|
69
70
|
user_name:用户名称
|
70
71
|
"""
|
71
72
|
address = os.environ.get("address", "192.168.12.249")
|
72
|
-
url = f"http://
|
73
|
+
url = f"http://192.168.12.241/console/api/user_credentials/list?user_name={user_name}"
|
73
74
|
print(url)
|
74
75
|
response = requests.get(url)
|
75
76
|
if response.status_code != 200:
|
@@ -86,7 +87,7 @@ def exist(key_name, user_name):
|
|
86
87
|
user_name:用户名称
|
87
88
|
"""
|
88
89
|
address = os.environ.get("address", "192.168.12.249")
|
89
|
-
url = f"http://
|
90
|
+
url = f"http://192.168.12.241/console/api/user_credentials?certificate_key={key_name}&user_name={user_name}"
|
90
91
|
print(url)
|
91
92
|
response = requests.get(url)
|
92
93
|
if response.status_code != 200:
|
isrpa/utils.py
CHANGED
@@ -8,16 +8,16 @@ def getPath(user_name):
|
|
8
8
|
"""
|
9
9
|
环境变量设置
|
10
10
|
windows
|
11
|
-
setx address "192.168.12.
|
11
|
+
setx address "192.168.12.249"
|
12
12
|
|
13
13
|
linux
|
14
|
-
export address = "192.168.12.
|
14
|
+
export address = "192.168.12.249"
|
15
15
|
source /etc/profile
|
16
16
|
:param port:
|
17
17
|
:return:
|
18
18
|
"""
|
19
19
|
|
20
|
-
address = os.environ.get("address", "192.168.12.
|
20
|
+
address = os.environ.get("address", "192.168.12.249")
|
21
21
|
|
22
22
|
url = f"http://192.168.12.241/client/getPath"
|
23
23
|
print(url)
|
@@ -45,7 +45,7 @@ def upload_file(file_path, dest_file, user_name):
|
|
45
45
|
:return:
|
46
46
|
"""
|
47
47
|
|
48
|
-
address = os.environ.get("address", "192.168.12.
|
48
|
+
address = os.environ.get("address", "192.168.12.249")
|
49
49
|
url = f"http://192.168.12.241/client/noticeUpload"
|
50
50
|
print(url)
|
51
51
|
headers = {
|
@@ -2,10 +2,10 @@ isrpa/OCR.py,sha256=nSDmVLo_z9GV7GUY57xBh2kumERG5_xtpUPxeF6ziQE,2509
|
|
2
2
|
isrpa/Template.py,sha256=UP1uovLvJzXEPGo_hzLrIYOu3vZP8Cf6m3G2hGzQ6XA,1958
|
3
3
|
isrpa/Template_Exception.py,sha256=an6eQ1NMB8a9R-J0yyMdwHIZcZeDtdV5f7fWKZQsZ3s,819
|
4
4
|
isrpa/__init__.py,sha256=pG-YPVG0gJIJ6s4xcAz9S_CnUxpUcz33wl9eNUSgxGk,20
|
5
|
-
isrpa/credentials.py,sha256=
|
5
|
+
isrpa/credentials.py,sha256=2fT1g2G3uFSx5Ilt9SkDakiDTLeSLQ-RR7oVcDEt0KI,2853
|
6
6
|
isrpa/message.py,sha256=N0s6hMaC5S-Pi4EhwcSp-ngfBTBQyW6ymU9sI9dUSeE,11329
|
7
|
-
isrpa/utils.py,sha256=
|
8
|
-
isrpa-0.9.
|
9
|
-
isrpa-0.9.
|
10
|
-
isrpa-0.9.
|
11
|
-
isrpa-0.9.
|
7
|
+
isrpa/utils.py,sha256=MRRikKbksJVU8cY03bwxPiAq51BqYtcVPAjHCJcEGYc,51352
|
8
|
+
isrpa-0.9.2.dist-info/METADATA,sha256=Q-d7dhtnbDGJmHPmad4giePV-vbb3rpl91u_gp05i94,511
|
9
|
+
isrpa-0.9.2.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
10
|
+
isrpa-0.9.2.dist-info/top_level.txt,sha256=J5HJbtR2WAeKnW1rrpkiuapwnlswv3RgM-riyZD87o0,6
|
11
|
+
isrpa-0.9.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|