简体   繁体   中英

communication between 2 programs in python

I have 2 programs that are both in python, one is 3rd Party and already been made. I want to run one in the foreground and one in the background. I want to set up a communication between the 2 programs, so I can tell the one in the foreground to do something, and it then tell the other program to do something. Such as on the foreground program I press a button, which then tell the other program to do something. What is the best way to do bout this?

I know I have asked a question about this before, but I feel that people might have found that too specific, so I have written a more simplified question.

From my experience, rpyc is by far the simplest, most elegant, and most flexible way to go about it. http://rpyc.readthedocs.org/en/latest/

您可以使用多处理模块中的Manager。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM