简体   繁体   English

如何从远程应用服务器调用本地python函数?

[英]How can i call a local python function from my remote app server?

I have written a python application with an inclusion of an ActiveX control(ocx) to print via serial Port to an Epson receipt printer using the win32com library. 我编写了一个包含ActiveX控件(ocx)的python应用程序,通过串行端口使用win32com库打印到Epson收据打印机。 It's Ok !!! 没关系 !!! but my master app in on another server. 但我的主app在另一台服务器上。 How can i comunicate with my app locally? 我如何在本地与我的应用程序通信?

What you need is a Remote procedure call framework. 您需要的是远程过程调用框架。 See this question for various solutions in Python. 有关Python中的各种解决方案,请参阅此问题

Solved!!! 解决了!!! I've solved this problem using on my local PC a python module called SimpleHTTPServer that include my function and call my ocx component!! 我已经在我的本地PC上使用一个名为SimpleHTTPServer的python模块解决了这个问题,该模块包含我的函数并调用我的ocx组件!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在服务器上托管 function,我可以从我的 python 脚本调用它? - How do I host a function on a server, which I can call from my python script? 如何从 z/OS 调用远程服务器上的 python 脚本? - How can I call python scripts on a remote server from z/OS? Python:如何使用Paramiko从本地PC到remoteA到remoteb到远程c - Python: How can remote from my local pc to remoteA to remoteb to remote c using Paramiko 如何从HTML文档调用python的局部函数? - How can I call a python's local function from an HTML doc? 如何从远程服务器上的php调用python - How to call python from php on a remote server 在python中如何获取本地服务器的日期和时间? - In python how can I get the date and time of my local server? 如何将某些数据从Google App脚本发布到本地计算机上的python脚本中? - How can I post some data from google app script to my python script on the local machine? Python:如何在我的第一次调用后(时间序列)阻止函数值更改 - Python: How can I stop my function values from changing after my first call (time series) 我如何从后缀服务器中获取我的别名,然后调用一个调用python程序的shell脚本? - How can I have my alias from a postfix server call a shell script that calls a python program? 如何从另一个 Python 应用程序调用 Django 应用程序? - How can I call a Django app from another Python app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM