To structure our program a framework is used. A framework provides you with the certainty that you are developing an application that is in full compliance with the business rules.
It allows developers to save time by re-using generic modules in order to focus on other areas. Without, however, ever been tied to the framework itself.
In order to choose the best suited framework, a little research was done to see what framework filled the tasks we had. The main task is a good interaction with REST and API's.
Django is one of the biggest frameworks in Python and has a good interaction with API's and hardware, therefore was Django to most logistical framework to go forward.
Though Django is the most obvious choice it wasn't the fastest way to have a quick demo. Therefor was the first demo created with Flask.
Flask is a microframework for Python, it's one of the most easiest ways to setup a simple web server.
The following code shows a simple web application that prints "Hello World!":
from flask import Flaskapp = Flask(__name__)@app.route("/")def hello():return "Hello World!"if __name__ == "__main__":app.run()