Python

Python: how to download and extract a ZIP file

Python offers many modules for working with files, including those compressed in ZIP format. In this article we will see how to download a file via HTTP and decompress it using Python's urllib and zipfile modules.

May 8, 2023
Python

Python: how to recursively copy a directory

In Python, there are several libraries that can be used to recursively copy a directory.

May 1, 2023
Python

Python: how to evaluate password entropy

Python is a popular programming language that can be used to evaluate password entropy. First, we need to define a function that calculates entropy.

April 27, 2023
Python

Python: how to create a random token for a password recovery URL

In this article, we'll see how to create a random token to use in a Python app URL to reset a user's password.

April 18, 2023
Python

Python: create a CSR with a private key

In this article we're going to see how to create a CSR (Certificate Signing Request) and an RSA private key with Python.

April 15, 2023
Python

How to reinstall a Node.js application with Python

In this article we'll see how to perform a clean reinstallation of a Node.js application using Python.

April 9, 2023