Categories
AWS nginx Python uWSGI

How to run Flask Application with uwsgi behind nginx

Last updated on June 13th, 2022 at 02:28 pmWe are going to configure Nginx to forward request to uWSGI and serve Python applications running on Flask In this post we will discuss in detail on how to configure uWSGi with nginx to run Python application (in flask) in Linux(Ubuntu/Redhat). You can follow the same steps […]

Categories
AWS Python

How to read spreadsheet in S3 using python

Last updated on June 2nd, 2022 at 08:03 amIn this tutorial we will focus on how to read a spreadsheet (excel) in an AWS S3 bucket using Python. Before you jump on to the script please make sure that the below pre-requisites are met IAM user created with sufficient permission to read the S3 bucket. […]

Categories
Python

How to delete specific line in file using Python

Last updated on August 29th, 2022 at 01:53 pmIn this tutorial we are going to delete a specific line in a file that starts with a string. Let us first create a simple text file ‘myfile‘, Content of the file is as follows. The python script we are going to create will delete a specific […]

Categories
Python

How to connect to MySQL database using Python

Last updated on January 28th, 2022 at 07:51 pmFor connecting to MySQL database and display table row content using Python 2, we need to first install MySQL-python.x86_64, This is for my 64-bit Linux machine. Without installing this package import MySQLdb statement will not work. You can also see this in your apache error logs In […]