Skip to main content

Create RESTful API using Python & MySQL

RESTFul API is an advance concept of web development that implemented at server and used with HTTP method (GET/ POST/ PUT/ DELETE) to handle the data. The HTTP request methods and resources are identified using URIs and handled functionality accordingly.

If you’re thinking about implementing Python RESTful API, then you’re here at right place. In our previous tutorial, you have learned about implementing RESTFul API with CodeIgniter. In this tutorial, you will learn how to create Python RESTFul API using MYSQL.

We will cover this tutorial with live example with HTTP methods like (GET/ POST/ PUT/ DELETE) to implement Python RESTFul API with CRUD operations.

We hope you have installed Python in Your Windows or Linux with Python and its packages. Here we are using Python 3.10.4 version. We will use flask, flask-mysql and flask-cors module.

(more…)

Oops Concept in Python

In our previous Python tutorial, we have explained about Data types in Python. In this tutorial, we will discuss about Oops Contepts in Python.

The object-oriented concepts are mainly focuses on to write the reusable code. It design the program using classes and objects. The object is related to real-world entities such as car, bike, computer etc.

Just like any other general-purpose programming language, Python is also an object-oriented language. It allows to develop applications using object-oriented approach by creating classes and objects. (more…)

Data Types in Python

In our previous Python tutorial, we have explained about File Handling in Python. In this tutorial, we will discuss about Data Types in Python.

The data types are important in any programming language. The variables can store values and every vaue has data types. As Python is a dynamically typed language, so we do not need to define the type of the variable while declaring vairable as the interpreter implicitly binds the value with its type.

In spite of dynamically typed language, Python still provided some build-in data types that define the storage method on each of them. (more…)

Reading CSV File using Python

In our Python tutorial, you have learned how to write CSV file in Python. In this tutorial, you will learn how to read CSV File in Python.

CSV (comma-separated values) file is a delimited text file. The file consists of one or more lines of data record. Each data record consists of values separated by commas, all the lines of a CSV file have the same number of values.

Here in this tutorial, we will implement how to read a CSV file to get file data. We will use csv module from Python to read CSV file. (more…)