In [1]:
!ls
In [2]:
!pwd
let's run an experiment. we need to run a server, where we will have a python application integrating information from the sensors (for now we can use 'pretend' callback functions that handle sensor events), managing a relational database, serving the web pages that compose the swimmers' application (at each lane display), receiving requests from those web pages, ...
Flask is a pretty lightweight python server framework, if we can call it that. let's try it:
http://flask.pocoo.org/docs/0.12/quickstart/
In [10]:
import flask
In [1]:
from flask import Flask
In [2]:
app = Flask(__name__)
In [12]:
flask.request?
In [ ]: