Use python test.py python flask_app.py Launch these in two different sessions... test.py publishes data, flask_app.py subscribes pip install flask flask-socketio gevent logzero eventlet ruamel.yaml scipy