Answer the question
In order to leave comments, you need to log in
How to link one python program to another python program?
There is a script that should perform certain actions when it is accessed by another python script. What is the best way to implement such a connection? So far, only writing a server API that will work locally, or using sockets, has come to mind. Are there any more elegant solutions? Both scripts run on the same machine.
Answer the question
In order to leave comments, you need to log in
Take Bottle: Python Web Framework , use it to sketch api (you can do it in 10 minutes). And refer to the second script by api. The advantage of bottle is that this framework is compact and fits in just one file.
celery and rabbit - this is the gentleman's set that will suit everyone :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question