isrpa 0.8__py3-none-any.whl → 0.8.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/OCR.py CHANGED
@@ -1,7 +1,7 @@
1
1
  import base64
2
2
  import json
3
3
  import requests
4
- from Template_Exception import *
4
+ from isrpa.Template_Exception import *
5
5
 
6
6
 
7
7
  def OCR_frome_image_path(img_path, apiKey, secretKey, code_type=8000, option='vCode'):
isrpa/message.py CHANGED
@@ -1,6 +1,6 @@
1
1
  import json
2
2
 
3
- from Template_Exception import *
3
+ from isrpa.Template_Exception import *
4
4
 
5
5
 
6
6
  def action_message(page, message="等待用户操作", button_label="确认", button=True, time=180):
isrpa/utils.py CHANGED
@@ -35,25 +35,26 @@ def getPath(userName):
35
35
  return response.json()
36
36
 
37
37
 
38
- def upload_file(file_path,dic_path,port:str):
38
+ def upload_file(file_path,dest_file,user_name):
39
39
  """
40
40
  通知客户端上传文件
41
- :param file_path:
42
- :param dic_path:
41
+ :param file_path:待上传文件
42
+ :param dest_file:上传目标目录
43
43
  :param port:
44
44
  :return:
45
45
  """
46
46
 
47
47
  address = os.environ.get("address", "192.168.12.249")
48
- url = f"http://{address}/client/executeCmd"
48
+ url = f"http://{address}/client/noticeUpload"
49
49
  print(url)
50
50
  headers = {
51
51
  'Content-Type': 'application/json', # 说明请求体是 JSON 格式
52
52
  }
53
- cmd_str = "/isearch/magicautoproxy/proxy_manager_cli upload --port "+port + " --localfile "+ file_path + " --destfile" +dic_path
54
53
  # 请求体的数据
55
54
  data = {
56
- 'cmd_str': cmd_str
55
+ 'file_path': file_path,
56
+ 'dest_file': dest_file,
57
+ 'user_name': user_name
57
58
  }
58
59
  print(data)
59
60
  requests.post(url, headers=headers, json=data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isrpa
3
- Version: 0.8
3
+ Version: 0.8.2
4
4
  Summary: isrpa package
5
5
  Home-page: https://github.com/yourusername/mypackage
6
6
  Author: ysq
@@ -0,0 +1,10 @@
1
+ isrpa/OCR.py,sha256=nSDmVLo_z9GV7GUY57xBh2kumERG5_xtpUPxeF6ziQE,2509
2
+ isrpa/Template.py,sha256=UP1uovLvJzXEPGo_hzLrIYOu3vZP8Cf6m3G2hGzQ6XA,1958
3
+ isrpa/Template_Exception.py,sha256=an6eQ1NMB8a9R-J0yyMdwHIZcZeDtdV5f7fWKZQsZ3s,819
4
+ isrpa/__init__.py,sha256=pG-YPVG0gJIJ6s4xcAz9S_CnUxpUcz33wl9eNUSgxGk,20
5
+ isrpa/message.py,sha256=N0s6hMaC5S-Pi4EhwcSp-ngfBTBQyW6ymU9sI9dUSeE,11329
6
+ isrpa/utils.py,sha256=U3zz5fgc8NzpEVg6kIZVPziTMwtvZaA1vE3A2qwD7qU,50825
7
+ isrpa-0.8.2.dist-info/METADATA,sha256=NuEvTGnNtdysHOiACjyRsJZPcAyMGQo15SN2ckVBa2Q,459
8
+ isrpa-0.8.2.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
9
+ isrpa-0.8.2.dist-info/top_level.txt,sha256=J5HJbtR2WAeKnW1rrpkiuapwnlswv3RgM-riyZD87o0,6
10
+ isrpa-0.8.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: setuptools (75.5.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,10 +0,0 @@
1
- isrpa/OCR.py,sha256=mI4wagHGcsdfXm8MZP0kILxkeReOy9AcY4cF6O-vPt0,2503
2
- isrpa/Template.py,sha256=UP1uovLvJzXEPGo_hzLrIYOu3vZP8Cf6m3G2hGzQ6XA,1958
3
- isrpa/Template_Exception.py,sha256=an6eQ1NMB8a9R-J0yyMdwHIZcZeDtdV5f7fWKZQsZ3s,819
4
- isrpa/__init__.py,sha256=pG-YPVG0gJIJ6s4xcAz9S_CnUxpUcz33wl9eNUSgxGk,20
5
- isrpa/message.py,sha256=ak1ZZ8zDeXoYP0UXxrZK8yLie-5rUJ5VHwANTHpsLgQ,11323
6
- isrpa/utils.py,sha256=bmcEvxfLhrWOFGUXpBSSsGlfD8qmJ-lCm8VHoYpEPEY,50851
7
- isrpa-0.8.dist-info/METADATA,sha256=teh2LhNGJOrHkH6lTXH7LYpq0Ub5z4P0x4Gf3A2rriI,457
8
- isrpa-0.8.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
9
- isrpa-0.8.dist-info/top_level.txt,sha256=J5HJbtR2WAeKnW1rrpkiuapwnlswv3RgM-riyZD87o0,6
10
- isrpa-0.8.dist-info/RECORD,,