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…

Posted in Flask Python

Working with Static Resources CSS JS Image in Flask Template

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…

Posted in Flask Python

Python Flask Login Logout with Remember Me Option

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…

Posted in Python

Python Voice Recording through Microphone for Arbitrary Time using PyAudio

Introduction We will create an example here and we 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…

Posted in AJAX File Upload Flask jQuery Python

AJAX File(s) Upload using Python Flask and jQuery

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…

Posted in Flask Python REST

Python Flask REST API Login Logout Example

Introduction We will create bootstrap calendar events demo using Python Flask MySQL. We had created similar example using Codeigniter (PHP framework) and MySQL. We will use the same version of bootsrap library 2.3.2 because using bootstrap version 4.3.1 the layout becomes a little messy. It helps users to track easily what all upcoming events are…

Posted in Bootstrap Flask MySQL Python

Bootstrap Calendar Events Demo using Python Flask MySQL

Introduction This example is about to upload multiple files using Python Flask REST API. We have also seen how to upload single file using Python Flask REST API. We may need to upload single or multiple files according to application’s requirements and here we are going to create an example on Python Flask REST API…

Posted in File Upload Flask Python REST

Python Flask REST API Multiple Files Upload

Introduction I will create here Python Flask REST API file upload example though you might have seen how to upload file using Python Flask in web application. You may need to upload a single file or multiple files into your application for a reason and here I am going to use light-weight web based Python…

Posted in File Upload Flask Python REST

Python Flask REST API File Upload Example

Introduction In this post we will see how to secure REST API with JWT authentication using Python Flask. JWT is an acronym for JSON Web Token. In previous example we have seen how to secure REST API using HTTP Basic Authentication which is not recommended for most of the time. Recommended Reading REST API CRUD…

Posted in Flask Python Security

Securing REST API: JWT Authentication using Python Flask

Introduction We will see an example on how to secure REST API using Python Flask. We will create a Python Flask HTTP Basic Authentication. Most of the web services that require authentication accept HTTP Basic Authentication. This is the simplest one, and request supports it straight out of the box. This HTTP basic authentication is…

Posted in Flask Python Security

Securing REST API: Python Flask HTTP Basic Authentication

Introduction I will create an example on how to use query parameter in REST API GET request with Python Flask. HTTP GET method is used to fetch data from the server. So here I will use GET method to fetch data from server and send to the client. Query parameter is used with GET method…

Posted in Flask Python

Query Parameter in REST API: GET Request with Python Flask

Introduction We will show data on Google pie chart using Python Flask API. We will show some static data on Google chart API using Flask web application. The data are built in a dictionary format using Python API and we display data on chart by rendering the Flask template. Pie charts are generally used to…

Posted in Flask Python

Show Data on Google Pie Chart using Python Flask