isrpa 0.9.1__py3-none-any.whl → 0.9.3__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,6 +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
+ print(address)
15
16
  url = f"http://192.168.12.241/console/api/user_credentials"
16
17
  print(url)
17
18
  headers = {
@@ -24,7 +25,9 @@ def store_key(key_name,key_value,user_name):
24
25
  'user_name': user_name
25
26
  }
26
27
  print(data)
27
- requests.post(url, headers=headers, json=data)
28
+ response = requests.post(url, headers=headers, json=data)
29
+ json = response.json()
30
+ return json['certificate_key']
28
31
 
29
32
  def get_key(key_name, user_name):
30
33
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isrpa
3
- Version: 0.9.1
3
+ Version: 0.9.3
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=s557z7YSq7g7glXKf5CLHgzVzVocI3CPAG5swBcNSvA,2833
5
+ isrpa/credentials.py,sha256=VZz4b8a5yY61UycCsF3aNhQvhILo63i0HnigeZeKxYA,2928
6
6
  isrpa/message.py,sha256=N0s6hMaC5S-Pi4EhwcSp-ngfBTBQyW6ymU9sI9dUSeE,11329
7
7
  isrpa/utils.py,sha256=MRRikKbksJVU8cY03bwxPiAq51BqYtcVPAjHCJcEGYc,51352
8
- isrpa-0.9.1.dist-info/METADATA,sha256=ryB74w2qTIicTYtH7IRTgCVyVhClvGwsdO5YJ8Dih_o,511
9
- isrpa-0.9.1.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
10
- isrpa-0.9.1.dist-info/top_level.txt,sha256=J5HJbtR2WAeKnW1rrpkiuapwnlswv3RgM-riyZD87o0,6
11
- isrpa-0.9.1.dist-info/RECORD,,
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,,
File without changes