Communicate between two python app
<p>I have done two app's :</p>

<ol>
<li>The first one is a spider that extract all links from a website.<br></li>
<li>The second one  do some checks on each link sent by the first app.</li>
</ol>

<p>When the first app find a link, how can I send a notification or something else to the second app ?<br>
The second app must listen continuously the data sent by the first app.</p>

<p>I found few post speaking of <code>Queue</code> but I don't really understand how that work.</p>

<p>Can someone explain me with a simple exemple how to communicate between the two app ?</p>

<p>Thank's</p>

<p>You want to save one file as a "module" to be imported by the other file. Here this can be implemented with the the <code>import</code> keyword. For example, if you name the second part of your application <code>listener.py</code>, you can type <code>import listener</code> in your other file (remember to put them in the same folder!) and call any method from the second file. <a href="https://docs.python.org/2/tutorial/modules.html" rel="nofollow">You can read more on Python modules here.</a></p>

python multithreading python-2.7 queue