Category: Python (Page 3 of 3)

Dive into Python tutorials focused on real-world programming, scripting, and automation. This category features guides on Python basics, file handling, API integration, error handling, and productivity scripts ideal for beginners and experienced developers alike.

How to read spreadsheet in S3 using python

Last updated on August 29th, 2024 at 11:50 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. […]

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 […]

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 […]

Newer posts »