Andres Torres's Articles
Web developer, photographer and Python Lover.
PyInstaller: Package Python Applications (Windows, Mac and Linux)
PyInstaller is a program used to convert Python scripts into standalone applications. PyInstaller allows you to run applications written in Python on a computer without requiring the user to install Python. It is an excellent option when you need to distribute a program to the end user as a standalone application. PyInstaller currently only works […]
Read Morepy2exe: Python to exe Introduction
py2exe is a simple way to convert Python scripts into Windows .exe applications. It is an utility based in Distutils that allows you to run applications written in Python on a Windows computer without requiring the user to install Python. It is an excellent option when you need to distribute a program to the end […]
Read MoreHashing Files with Python
Remember that a hash is a function that takes a variable length sequence of bytes and converts it to a fixed length sequence. Calculating a hash for a file is always useful when you need to check if two files are identical, or to make sure that the contents of a file were not changed, […]
Read MoreHashing Strings with Python
A hash function is a function that takes input of a variable length sequence of bytes and converts it to a fixed length sequence. It is a one way function. This means if f is the hashing function, calculating f(x) is pretty fast and simple, but trying to obtain x again will take years. The value returned […]
Read MoreFinding Duplicate Files with Python
Sometimes we need to find the duplicate files in our file system, or inside a specific folder. In this tutorial we are going to code a Python script to do this. This script works in Python 3.x. The program is going to receive a folder or a list of folders to scan, then is going […]
Read MoreAdvanced SQLite Usage in Python
Following the SQLite3 series, this post is about some advanced topics when we are working with the SQLite3 module. If you missed the first part, you can find it here. Using SQLite’s date and datetime Types Sometimes we need to insert and retrieve some date and datetime types in our SQLite3 database. When you execute […]
Read MoreIntroduction to SQLite in Python
SQLite3 is a very easy to use database engine. It is self-contained, serverless, zero-configuration and transactional. It is very fast and lightweight, and the entire database is stored in a single disk file. It is used in a lot of applications as internal data storage. The Python Standard Library includes a module called “sqlite3” intended […]
Read More