Useful tools for files
Project description
forfiles
forfiles has useful tools for files and images.
Installation
Use the package manager pip to install forfiles.
pip install --upgrade forfiles
Also install dependencies.
pip install -r requirements.txt
Usage
from forfiles import file, image
# file tools
file.filter("C:/Users/example/Downloads/directory-to-filter/", [".png", ".txt", "md"])
# image tools
image.scale("C:/Users/example/Downloads/boat.png", 1, 1.5)
image.resize("C:/Users/example/Downloads/car.jpg", 1000, 1000)
# image tools for directories
image.dir_scale("C:/Users/example/Downloads/cats", 2, 2)
image.dir_resize("C:/Users/example/Downloads/giraffes", 1000, 1000)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
forfiles-4.0.2.tar.gz
(3.1 kB
view hashes)