Category: Python

Extracting files with Progress

With today’s topic we will see how to extract files with Python and show progress as well. We will be using zipfile, os, and tqdm to extract the files today. In the fast movement...

Python: Expand URL

Python has many great modules to deal with HTTP connections. A simple one to look at to day is the requests module. We’ll look at how to query the HTTP request for the HEAD...

Scheduling file backups with Python

No matter what industry and position you are in, there are always file you need to backup. With so many options out there, creating your own solution is sometimes all you need. In this...

Port Checking in Python

Python’s Sockets library allows us to make connections to other hosts and we can use this to establish new sockets for our scripts or check if they are open on remote hosts. With platforms...

Python Countdown Timer

Creating a timer is something we can use with just about projects. Whether that is to sleep the script or create a timer to perform something else. We will use two python modules: time...

Export images folder to HTML page

Often times we have a lot of images in a bunch of folders, and we need to go through the files to review them. I will show how we can use Python’s glob(), enumerate(),...

Encrypting Files

With python there are many modules to use for encryption. Today we will see how to generate a key and encrypt a file. Encryption is used when encoding a file in a way that...