isrpa 0.8.9__tar.gz → 0.9.1__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.8.9
3
+ Version: 0.9.1
4
4
  Summary: isrpa package
5
5
  Home-page: https://github.com/yourusername/mypackage
6
6
  Author: ysq
@@ -12,7 +12,7 @@ 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
- url = f"http://{address}/console/api/user_credentials"
15
+ url = f"http://192.168.12.241/console/api/user_credentials"
16
16
  print(url)
17
17
  headers = {
18
18
  'Content-Type': 'application/json', # 说明请求体是 JSON 格式
@@ -33,7 +33,7 @@ def get_key(key_name, user_name):
33
33
  user_name:用户名称
34
34
  """
35
35
  address = os.environ.get("address", "192.168.12.249")
36
- url = f"http://{address}/console/api/user_credentials?certificate_key={key_name}&user_name={user_name}"
36
+ url = f"http://192.168.12.241/console/api/user_credentials?certificate_key={key_name}&user_name={user_name}"
37
37
  print(url)
38
38
  response = requests.get(url)
39
39
  if response.status_code != 200:
@@ -50,7 +50,7 @@ def delete_key(key_name,user_name):
50
50
  user_name:用户名称
51
51
  """
52
52
  address = os.environ.get("address", "192.168.12.249")
53
- url = f"http://{address}/console/api/user_credentials"
53
+ url = f"http://192.168.12.241/console/api/user_credentials"
54
54
  print(url)
55
55
  headers = {
56
56
  'Content-Type': 'application/json', # 说明请求体是 JSON 格式
@@ -69,7 +69,7 @@ def list(user_name):
69
69
  user_name:用户名称
70
70
  """
71
71
  address = os.environ.get("address", "192.168.12.249")
72
- url = f"http://{address}/console/api/user_credentials/list?user_name={user_name}"
72
+ url = f"http://192.168.12.241/console/api/user_credentials/list?user_name={user_name}"
73
73
  print(url)
74
74
  response = requests.get(url)
75
75
  if response.status_code != 200:
@@ -86,7 +86,7 @@ def exist(key_name, user_name):
86
86
  user_name:用户名称
87
87
  """
88
88
  address = os.environ.get("address", "192.168.12.249")
89
- url = f"http://{address}/console/api/user_credentials?certificate_key={key_name}&user_name={user_name}"
89
+ url = f"http://192.168.12.241/console/api/user_credentials?certificate_key={key_name}&user_name={user_name}"
90
90
  print(url)
91
91
  response = requests.get(url)
92
92
  if response.status_code != 200:
@@ -8,18 +8,18 @@ def getPath(user_name):
8
8
  """
9
9
  环境变量设置
10
10
  windows
11
- setx address "192.168.12.241"
11
+ setx address "192.168.12.249"
12
12
 
13
13
  linux
14
- export address = "192.168.12.241"
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.241")
20
+ address = os.environ.get("address", "192.168.12.249")
21
21
 
22
- url = f"http://{address}/client/getPath"
22
+ url = f"http://192.168.12.241/client/getPath"
23
23
  print(url)
24
24
  headers = {
25
25
  'Content-Type': 'application/json', # 说明请求体是 JSON 格式
@@ -45,8 +45,8 @@ 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.241")
49
- url = f"http://{address}/client/noticeUpload"
48
+ address = os.environ.get("address", "192.168.12.249")
49
+ url = f"http://192.168.12.241/client/noticeUpload"
50
50
  print(url)
51
51
  headers = {
52
52
  'Content-Type': 'application/json', # 说明请求体是 JSON 格式
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isrpa
3
- Version: 0.8.9
3
+ Version: 0.9.1
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.8.9',
5
+ version='0.9.1',
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