Skip to main content

Monitoring Memory Consumption in Python

In our previous Python tutorial, we have explained how to do Web Scraping using Python. In this tutorial, we will explain how to Monitor Memory Consumption in Python.

Due to simplicity and robustness, Python is popular among data science community. The Data Scientists use Python to process huge amount of data and often prone to memory management issues. If code execution exceeds the memory limit, memory errors returns and execution terminates. (more…)

Web Scraping in Python

In our previous Python tutorial, we have explained how to develop User Management System with Python, Flask and MySQL. In this tutorial, we will explain how to do web scraping using Python.

Now the question arises, What is Web Scraping? Web Scraping is a process to extract data from websites. The scraping software make request to website or web page and extracts underlying HTML code with data to use further in other websites.

In this tutorial, we will discuss how to perform web scraping using the requests and beautifulsoup library in Python. (more…)

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