Securing REST API: JWT Authentication using Python Flask

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 Example using Python Flask and…

Securing REST API: Python Flask HTTP Basic Authentication

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 not recommended as it is…

Query Parameter in REST API: GET Request with Python Flask

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 to fetch data from server…

Show Data on Google Pie Chart using Python Flask

Google Pie Chart I will show data on Google pie chart using Python Flask API. I 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 I will display data on chart by rendering the Flask template. Pie charts are generally used to show percentage…

Python Flask Username Availability Check With MySQL AJAX

Username Availability Check This tutorial shows an example on Python Flask username availability check with MySQL, AJAX. Sometimes you may need to check username availability immediately before a user submits the form after filling a lengthy signup form or any other forms. In this case you can use AJAX with any technologies like PHP, Codeigniter, Servlet, Struts, JSF, Spring etc….

Python Flask Multi-Step Registration Form With MySQL jQuery

Multi-Step Registration Form You will see an example on Python Flask multi-step registration form with MySQL, jQuery. Sometimes you may need to capture lots of user details during registration process and as a result a user gets a long form on web page. So the best solution is to break the form into smaller logical section and present it into…

Building Simple Shopping Cart using Python, Flask, MySQL

Introduction In this tutorial I will show you here how to build a simple shopping cart using Python, Flask, MySQL. This shopping cart is very simple and it does not have checkout option, payment option. This is about to display products in an online shopping portal, add item to cart, remove item from cart and remove all items from cart…

Session Management in Python, Flask

Introduction You will see here how to do session management in Python Flask. Session management in Python flask generally involves starting session, removing item from session, clearing item from session, updating item in session. You will see in subsequent sections later how to put value or an item into session, updating value in session, clearing session completely, removing value from…

Flash Message Management in Python, Flask

Flash Message You will see here how to do flash message management using Python, Flask. Ideally almost every application needs to provide some meaningful message to end user after some activities performed by end users. Such activities may be registration on a site, login, payment, etc. So after each operation whether success or failure most of the time we need…

Angular + Python Flask REST API MongoDB CRUD Example

Introduction In this post we will see Angualr + Python Flask REST API MongoDB CRUD Example. We will use our existing tutorial on Python Flask REST API MongoDB CRUD Example for server side and we will introduce Angular on UI or front end side. You can also use any UI technologies, such as React JS, HTML, JavaScript, jQuery etc., for front end…