Tag: Flask

Python + Flask - Part 4 - Remote Database

Oct 19, 2019 2 min.

This is the fourth and last part of a series about the Flask framework, a common tool used to create web applications with Python. Objectives The part 4 will focus on connecting the web API with a remote database. The full example is available here: Python-Flask. Topics Remote Database Remote Database Let’s connect with a remote MySQL database now. Follow the instructions in this article or in this repository to create a database and get the connection string.

Python + Flask - Part 3 - Local Database

Oct 19, 2019 1 min.

This is the third part of a series about the Flask framework, a common tool used to create web applications with Python. Objectives The part 3 will focus on connecting the web API with a local database. The full example is available here: Python-Flask. Topics Local Database Local Database Create another Python file inside the api folder called _dbapi and write this code: The functions below must be created as well:

Python + Flask - Part 2 - HTTP Methods

Oct 19, 2019 2 min.

This is the second part of a series about the Flask framework, a common tool used to create web applications with Python. Objectives The part 2 will focus on creating HTTP methods to our web API. The full example is available here: Python-Flask. Topics GET POST PUT DELETE GET Create a dictionary called _usersdict to be returned after a GET request: Access the URL below and see the result:

Python + Flask - Part 1 - Web API

Oct 19, 2019 2 min.

This is the first part of a series about the Flask framework, a common tool used to create web applications with Python. Objectives In this series you will learn how to create a web API in Python, make requests and connect it with local and remote databases. The part 1 will focus on the virtual environment to install Flask and how to run a web API. The full example is available here: Python-Flask.