Skip to main content

Develop Your First Web Application in Python

In our previous Python tutorial, we have explained how to Create REST API in Python. In this tutorial, we will explain how to develop your first web application in Python.

In Python, there are many frameworks such as Django, Flask which allows to easily create web pages and develop web applications.

In this tutorial, we will use Flask framework to develop our first web application in Python. The Flask is a popular micro web framework written in Python that provides useful tools and features to easily develop web applications. It is an easy to use and gives flexibility to new developers.

The Flask frameworks uses the Jinja2 template engine by default. You can obviously use a different template engine but you still have to install Jinja2 to run Flask itself.

In this tutorial, we will develop a web application that a user form with input field and a submit to submit form and dispay form submitted values.

(more…)

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…)