Skip to content
Demo Flask and SocketIO Background Thread
HTML Python
Branch: master
Clone or download
Latest commit 9ebdc3e Sep 28, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
templates Gave it a header Jun 19, 2015
.gitignore making moves Sep 28, 2015
README.md making moves Sep 28, 2015
main.py making moves Sep 28, 2015
requirements.txt making moves Sep 28, 2015

README.md

Demo-Flask-SocketIO

Took some time to explore Flask-SocketIO from Miguel Grinberg

Look for the blog post here: TimmyReilly.com

In the process I've learned about some sweet stuff you can do with Javascript, Python, and Flask-SocketIO.

Flask is a microframework

Free MVA on Flask if you want to learn more!

The five steps to this little demo project are as follows:

  1. Install Flask-SocketIO into our Virtual Environment

  2. Create our background thread

  3. Have it emit the current state to our client

  4. Call the background thread when our page render_template's

  5. Have the Javascript Catch the emit and format our HTML.

Celebrate! Its Friday!

Feel free to download it and start working with dynamic sites using SocketIO. Please let me know if you have any questions!

Woot!

You can’t perform that action at this time.