Python Flask Online Visitor Tracking System

Introduction We will discuss here how to build a simple online visitor tracking system using Python Flask. Every website owner would like to know the progress to the count of the online visitors because it gives them overall idea on the website’s analytical measurements. It will also give them how to make improvements on the websites. We will use here…

Convert Pdf to Image using Python

Introduction In this post you will see how to convert pdf to image using Python language. I will use here pdf2image module for extracting image from pdf file and convert to image file. Though there are number of tools available for converting pdf to image file but still you may need to convert pdf using programming language for certain situations. Here I…

Convert Image to Pdf using Python

Introduction In this post you will see how to convert image to pdf using Python language. I will use here img2pdf module for converting image file to pdf file. Though there are number of tools available for converting image to pdf file but still you may need to convert image using programming language for certain situations. Here I am going…

Working with Parent and Child Templates in Flask

Introduction I will discuss here how to work with parent and child templates in flask framework. In other words it is said template (Jinja) inheritance. So I will create a base or parent template which child template or pages will extend to include the common functionalities instead of repeating common functionalities into every page you need to use for your…

Context Processors in Flask API

Introduction I will explain here about the context processors in Python based web Flask API. Flask is a light-weight framework with a set of rich features for creating wonderful web application in Python programming language. In standard context of the flask API, there are some global variables which are, by default, available in Jinja 2 templates and you can easily…

Working with Static Resources CSS JS Image in Flask Template

Introduction I am going to discuss about working with static resources such as css, js, images in flask template. This tutorial will show you how to use css (Cascading Style Sheet), js (JavaScript) and image files. You need such static resources to generally enhance the look of the web pages and to communicate with the server side code when a…

Python Flask Login Logout with Remember Me Option

Introduction In this post we are going to see how to give users opportunity to remember their login credentials through cookie so that next time they try to login to the application do not require username and password for login. In our previous tutorials we have seen how to login and logout from an application using the following examples: Python…

Python Voice Recording through Microphone for Arbitrary Time using PyAudio

Introduction In this tutorial we will see how to perform voice recording through microphone for arbitrary time using PyAudio in Python. PyAudio provides Python bindings for PortAudio, the cross-platform audio I/O library. You can easily use Python with PyAudio to play and record audio on a variety of platforms. This application does not use UI or frontend to start and…

AJAX File(s) Upload using Python Flask and jQuery

File(s) Upload I will create an example here and I will show you how to upload single file or multiple files using AJAX and jQuery along with Python Flask technologies. You can either upload single file using browse button or multiple files using browse button by holding CTRL key(in Windows OS) from keyboard while selecting multiple files. The file or…

Python Flask REST API Login Logout Example

Introduction We will create REST APIs to allow users login and logout from an application using Python and Flask. We have seen in another tutorial how to login and logout from an application where UI or front end was built using flask template file but here we are not providing any UI or front end but UI or front end…