phg-vis 1.1.6__tar.gz → 1.2.0__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.
- {phg_vis-1.1.6/phg_vis.egg-info → phg_vis-1.2.0}/PKG-INFO +1 -1
- phg_vis-1.2.0/phg/vis/GCU.dll +0 -0
- phg_vis-1.2.0/phg/vis/vis.exe +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg/vis/vis.ini +1 -1
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg/visphg.py +8 -5
- {phg_vis-1.1.6 → phg_vis-1.2.0/phg_vis.egg-info}/PKG-INFO +1 -1
- {phg_vis-1.1.6 → phg_vis-1.2.0}/setup.py +1 -1
- phg_vis-1.1.6/phg/vis/GCU.dll +0 -0
- phg_vis-1.1.6/phg/vis/vis.exe +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/LICENSE +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/MANIFEST.in +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/README.md +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg/__init__.py +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg/vis/dragpad.exe +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg/vis/dragpad_config.ini +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg/vis/freeglut.dll +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg/vis/imgui/main.lua +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg/vis/lua.dll +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg/vis/script.phg +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg/vis/sqlite3.dll +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg/vis/zlib1.dll +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg_vis.egg-info/SOURCES.txt +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg_vis.egg-info/dependency_links.txt +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/phg_vis.egg-info/top_level.txt +0 -0
- {phg_vis-1.1.6 → phg_vis-1.2.0}/setup.cfg +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -35,18 +35,21 @@ def vis(phg):
|
|
|
35
35
|
return HTTPPOST('127.0.0.1', phg.encode())
|
|
36
36
|
|
|
37
37
|
# Send network message
|
|
38
|
-
def HTTPPOST_IMG(ip, phg):
|
|
38
|
+
def HTTPPOST_IMG(ip, phg, filename='shot.png'):
|
|
39
39
|
headers = {
|
|
40
40
|
"Connection": "keep-alive",
|
|
41
41
|
"Content-Type": "text/plain"
|
|
42
42
|
}
|
|
43
|
+
# 构建完整的请求体: phg代码 ||| 渲染参数(包含文件名)
|
|
44
|
+
request_body = f"{phg}|||file={filename}"
|
|
45
|
+
|
|
43
46
|
conn = http.client.HTTPConnection(f"{ip}:5088")
|
|
44
|
-
conn.request('POST', '/phg_img',
|
|
47
|
+
conn.request('POST', '/phg_img', request_body, headers)
|
|
45
48
|
res = conn.getresponse()
|
|
46
49
|
conn.close()
|
|
47
|
-
|
|
50
|
+
|
|
48
51
|
# Call HTTPPOST function to send network message
|
|
49
|
-
def image(phg):
|
|
52
|
+
def image(phg, filename='shot.png'):
|
|
50
53
|
if not is_vis_running(): # Check if the process is running
|
|
51
54
|
subprocess.Popen(vis_exe_path) # Start the process
|
|
52
|
-
return HTTPPOST_IMG('127.0.0.1', phg.encode())
|
|
55
|
+
return HTTPPOST_IMG('127.0.0.1', phg.encode('utf-8').decode('utf-8'), filename)
|
phg_vis-1.1.6/phg/vis/GCU.dll
DELETED
|
Binary file
|
phg_vis-1.1.6/phg/vis/vis.exe
DELETED
|
Binary file
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|