isrpa 0.9.2__tar.gz → 0.9.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isrpa
3
- Version: 0.9.2
3
+ Version: 0.9.4
4
4
  Summary: isrpa package
5
5
  Home-page: https://github.com/yourusername/mypackage
6
6
  Author: ysq
@@ -25,7 +25,13 @@ def store_key(key_name,key_value,user_name):
25
25
  'user_name': user_name
26
26
  }
27
27
  print(data)
28
- requests.post(url, headers=headers, json=data)
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"
33
+ json = response.json()
34
+ return json['certificate_key']
29
35
 
30
36
  def get_key(key_name, user_name):
31
37
  """
@@ -39,6 +45,7 @@ def get_key(key_name, user_name):
39
45
  response = requests.get(url)
40
46
  if response.status_code != 200:
41
47
  print("请求失败,状态码:", response.status_code)
48
+ print(response.text)
42
49
  return "failure"
43
50
  json = response.json()
44
51
 
@@ -75,6 +82,7 @@ def list(user_name):
75
82
  response = requests.get(url)
76
83
  if response.status_code != 200:
77
84
  print("请求失败,状态码:", response.status_code)
85
+ print(response.text)
78
86
  return "failure"
79
87
  json = response.json()
80
88
 
@@ -91,6 +99,8 @@ def exist(key_name, user_name):
91
99
  print(url)
92
100
  response = requests.get(url)
93
101
  if response.status_code != 200:
102
+ print("请求失败,状态码:", response.status_code)
103
+ print(response.text)
94
104
  return False
95
105
 
96
106
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isrpa
3
- Version: 0.9.2
3
+ Version: 0.9.4
4
4
  Summary: isrpa package
5
5
  Home-page: https://github.com/yourusername/mypackage
6
6
  Author: ysq
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='isrpa',
5
- version='0.9.2',
5
+ version='0.9.4',
6
6
  packages=find_packages(),
7
7
  install_requires=["requests", "tldextract"],
8
8
  author='ysq',
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