title: python to "stream" dictionary processing
body: <p>I have an algorithm in python that does an exhaustive search of possibilities given a set of inputs.</p>
  
  <p>This is hooked up to a web application and can take up to 15 seconds to fully process.</p>
  
  <p>So...yes I want to eventually improve on the algo and process quicker, but I'd also like to include a visualization that streams the possibilities python is working with until it arrives at a solution.</p>
  
  <p>In my terminal, python generates the list of possibilities line by line until it finds a combo that satisfies the requirements</p>
  
  <p><strong>How can I hook Python's terminal output up with my client-side framework</strong></p>
  
  <p>Ideally it would simulate the terminal's output and the user can see evidence that the algo is running while they wait.</p>
  
  <p>Would I convert the output to bytes, open a socket, and then stream the data within my application as I deserialize it?</p>