How to parse JSON received by a Flask application.
Pythonanywhere: Accessing the MySQL database
The objective of this post is to explain how to access the MySQL database of a free Pythonanywhere account and perform some simple tests. Introduction The objective of this post is to explain how to access the MySQL database of a free Pythonanywhere account and perform some simple tests. Fortunately, MySQL is almost ready to …
Continue reading "Pythonanywhere: Accessing the MySQL database"
LinkIt Smart Duo: Sending HTTPS requests
The objective of this post is to test some HTTPS requests using the Requests library on the LinkIt Smart Duo. Introduction The objective of this post is to test some HTTPS requests using the Requests library on the LinkIt Smart Duo. We will use this website for testing the behavior of the library with invalid HTTPS …
LinkIt Smart Duo: Installing and testing the Requests library for Python
The objective of this post is to explain how to install the Python Requests library on the LinkIt Smart 7688 Duo and perform a simple test. Introduction The objective of this post is to explain how to install the Python Requests library on the LinkIt Smart 7688 Duo and perform a simple test. The Requests …
Continue reading "LinkIt Smart Duo: Installing and testing the Requests library for Python"
Python anywhere: Forcing HTTPS on Flask app
The objective of this post is to explain how to force HTTPS on a deployed Flask application on pythonanywhere. Introduction The objective of this post is to explain how to force HTTPS on a deployed Flask application on pythonanywhere. As indicated here, there is SSL support even for free accounts. Here is an explanation on how we can …
Continue reading "Python anywhere: Forcing HTTPS on Flask app"
Python anywhere: Deploying a Flask server on the cloud
The objective of this post is to explain how to configure a Flask server on the cloud and create a simple hello world application. Introduction The objective of this post is to explain how to configure a Flask server on the cloud and create a simple hello world application. As we have seen in previous …
Continue reading "Python anywhere: Deploying a Flask server on the cloud"
LinkIt Smart Duo: Running a Flask server
The objective of this post is to explain how to install and run a Flask server on the LinkIt Smart 7688 Duo. Introduction Flask is a web micro framework for Python which allows us to create and deploy simple web applications very easily. In this tutorial, we will install Flask and create a very simple …
ESP8266: HTTP GET Requests to Flask server
The objective of this post is to explain how to connect the ESP8266 to a Flask Webserver and send a HTTP GET Request. The Python code For this example, we will use Flask to deploy a simple webserver that will listen to HTTP GET requests on a certain URL and output a simple text message …
Continue reading "ESP8266: HTTP GET Requests to Flask server"
Flask: Controlling HTTP methods allowed
The objective of this post is to explain how control the allowed HTTP methods on the URLs specified for a Flask web server. Introduction The objective of this post is to explain how control the allowed HTTP methods on the URLs specified for a Flask web server. Flask is a web micro framework for Python …
Flask: Hello World
The objective of this post is to explain how to create a simple "Hello world" application with Python and Flask. Introduction Flask is a web micro framework for Python [1] which allows us to create and deploy simple web applications very easily. The installation of Flask is very simple if we use pip. We just …