Re: [flask] Stream console output to Website
- Andy D'Arcy Jewell
- 2014-08-22 @ 20:40
I wrote a very simple sort of shared clipboard server in flask which
does something similar to what you want: the browser polls the server
special url, and then refreshes the page if there has been one:
You might find it useful.
On 22/08/14 12:38, Dorian Hoxha wrote:
> There are 2 ways:
> 2. You make a websocket/server-sent-events connection, so you can
> stream to the frontend data
> Or maybe this:
> On Fri, Aug 22, 2014 at 1:32 PM, Dennis Scheiba <Dennis.Scheiba@gmx.de
> <mailto:Dennis.Scheiba@gmx.de>> wrote:
> I wrote a little script that takes some time to execute, but shows
> it’s progress in the console. Well, I need to use this script in
> Flask and I’m trying to get the console output streamed to the
> website. I searched and I have readt a bit trough the web, but I
> couldn’t find a simple explanation how to do this.
> Here is what I have already written:
> So rry if it is a simple question, it is my first object
> orientated python script and I’m new to programming.
> Thanks in advance