<div dir="ltr">I was gonna recommend python-rq, I just couldn't remember what it was called! Thanks for the link.<div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Anthony Ford,<br>KF5IBN,<div><a href="mailto:ford.anthonyj@gmail.com" target="_blank">ford.anthonyj@gmail.com</a></div></div></div></div>
<br><div class="gmail_quote">On Mon, May 23, 2016 at 4:34 PM, Corey Boyle <span dir="ltr"><<a href="mailto:coreybrett@gmail.com" target="_blank">coreybrett@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Have each independent app store events in a common queue. Each app also watches for those events in the queue and processes them accordingly. Take a look at <a href="http://python-rq.org" target="_blank">http://python-rq.org</a> .</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On May 23, 2016 5:02 PM, "Nikolaus Neusser" <<a href="mailto:nik.gen@gmx.de" target="_blank">nik.gen@gmx.de</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    >For inter process communication, try using socket communication,
    either with straight sockets or via something like zeromq or
    similar.<br>
    <br>
    I think, that's the problem i have. Either way of inter process
    communication needs some kind of event loop.<br>
    Flask runs its own event loop, right?<br>
    So, how do i mix these two?<br>
    <br>
    Nik<br>
    <br>
    <br>
    <div>Am 20.05.2016 um 17:30 schrieb Anthony
      Ford:<br>
    </div>
    <blockquote type="cite">
      <p dir="ltr">My suggestion is to avoid running either within the
        other. If possible, try running each standalone. For inter
        process communication, try using socket communication, either
        with straight sockets or via something like zeromq or similar.</p>
      <p dir="ltr">--Ford</p>
      <div class="gmail_quote">On May 20, 2016 10:12 AM, "Nikolaus
        Neusser" <<a href="mailto:nik.gen@gmx.de" target="_blank">nik.gen@gmx.de</a>> wrote:<br type="attribution">
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
          <br>
          I'm using flask for the first time and after trying quite a
          lot, i still fail. :-(<br>
          I am wondering what i am doing wrong and if flask is the right
          way to go at all.<br>
          <br>
          My objective:<br>
             - I have a main python application, which basically is
          based on a PySide (QT4) event loop.<br>
               This runs a bigger state machine and several other
          functions.<br>
             - Now, i want to add a web interface which reads/sets
          parameters and displays a longer list of<br>
               strings from the main application (variable length) .<br>
          <br>
          Where i am:<br>
             - The simple flask examples from various tutorials work
          fine for me.<br>
             - BUT: I cannot combine my main application with flask,
          i.e. i don't know how to<br>
               interchange the data between my main application and the
          flask route-functions.<br>
          <br>
          What i tried:<br>
             - running flask in a thread (QThread). Works fine for a
          simple example, i.e. deliver static html<br>
               and react on get-request<br>
             - run flask in main thread. Doesn't work since some of my
          functions rely on the qt event loop<br>
             - interchanging data between my main application and flask
          in the thread. I tried this using the<br>
               qt signal/slot mechanism.<br>
               This doesn't work, because the signals which i have to
          define in the main application are not<br>
               accessible within the flask route-functions.<br>
          <br>
          <br>
          I really hope you can give me some good advice.<br>
          I can post code snippets if it helps for clarification.<br>
          <br>
          Thanks a lot,<br>
          <br>
          Nik<br>
          _______________________________________________<br>
          Flask mailing list<br>
          <a href="mailto:Flask@python.org" target="_blank">Flask@python.org</a><br>
          <a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Flask mailing list<br>
<a href="mailto:Flask@python.org" target="_blank">Flask@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br>
<br></blockquote></div>
</div></div></blockquote></div><br></div>