This is intended to grow into a library of useful data processing tools scripted in Python.
This script will populate a copyright header accross all files in a directory.
- Resize image batches This collection of functions may come handy when preparing imagery for new website. You can process backgrounds, thumbails, icons, etc. in a variety of formats such as jpg, png, svg, webp, ico.
- Extract metadata from large image batches
Clone this repo
git clone https://github.com/VidiHawk/python-scripts
cd <your project's file>
Create a virtual environment:
pip install virtualenv
python3 -m venv /path/to/new/virtual/environment
Activate it:
source /path/to/new/virtual/environment/bin/activate
Then install dependencies
pip install -r requirements.txt
If you want to add packages to the requirement.txt file, I recommand using the pipreqs package. To install it:
pip install pipreqs
To build automatically your requirements.txt, just run the following command in the project directory:
pipreqs . --force
The --force flag will overwrite the existing requirements.txt file.
These scripts have been created and tested on the Ubuntu 20.04.4 LTS operating system and Python 3.8.10