isrpa 0.9.3__py3-none-any.whl → 0.9.4__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
@@ -26,6 +26,10 @@ def store_key(key_name,key_value,user_name):
26
26
  }
27
27
  print(data)
28
28
  response = requests.post(url, headers=headers, json=data)
29
+ if response.status_code != 200:
30
+ print("请求失败,状态码:", response.status_code)
31
+ print(response.text)
32
+ return "failure"
29
33
  json = response.json()
30
34
  return json['certificate_key']
31
35
 
@@ -41,6 +45,7 @@ def get_key(key_name, user_name):
41
45
  response = requests.get(url)
42
46
  if response.status_code != 200:
43
47
  print("请求失败,状态码:", response.status_code)
48
+ print(response.text)
44
49
  return "failure"
45
50
  json = response.json()
46
51
 
@@ -77,6 +82,7 @@ def list(user_name):
77
82
  response = requests.get(url)
78
83
  if response.status_code != 200:
79
84
  print("请求失败,状态码:", response.status_code)
85
+ print(response.text)
80
86
  return "failure"
81
87
  json = response.json()
82
88
 
@@ -93,6 +99,8 @@ def exist(key_name, user_name):
93
99
  print(url)
94
100
  response = requests.get(url)
95
101
  if response.status_code != 200:
102
+ print("请求失败,状态码:", response.status_code)
103
+ print(response.text)
96
104
  return False
97
105
 
98
106
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isrpa
3
- Version: 0.9.3
3
+ Version: 0.9.4
4
4
  Summary: isrpa package
5
5
  Home-page: https://github.com/yourusername/mypackage
6
6
  Author: ysq
@@ -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=VZz4b8a5yY61UycCsF3aNhQvhILo63i0HnigeZeKxYA,2928
5
+ isrpa/credentials.py,sha256=YiE4C1crnljIIYreB6u2Bg7b1ZsRMYwmgkefdCAof1E,3247
6
6
  isrpa/message.py,sha256=N0s6hMaC5S-Pi4EhwcSp-ngfBTBQyW6ymU9sI9dUSeE,11329
7
7
  isrpa/utils.py,sha256=MRRikKbksJVU8cY03bwxPiAq51BqYtcVPAjHCJcEGYc,51352
8
- isrpa-0.9.3.dist-info/METADATA,sha256=k8fcgcDT-VTOa9QFFibR3iEjB3KTo6KWSpHiSzmA-cI,511
9
- isrpa-0.9.3.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
10
- isrpa-0.9.3.dist-info/top_level.txt,sha256=J5HJbtR2WAeKnW1rrpkiuapwnlswv3RgM-riyZD87o0,6
11
- isrpa-0.9.3.dist-info/RECORD,,
8
+ isrpa-0.9.4.dist-info/METADATA,sha256=pcHKouo_eOPU4lhU9DMgCo_x206ChdT6JI_EZLcmZGs,511
9
+ isrpa-0.9.4.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
10
+ isrpa-0.9.4.dist-info/top_level.txt,sha256=J5HJbtR2WAeKnW1rrpkiuapwnlswv3RgM-riyZD87o0,6
11
+ isrpa-0.9.4.dist-info/RECORD,,
File without changes