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
Usage
from forfiles import file, image
# file tools
file.filter_type("C:/Users/example/Downloads/directory-to-filter/", [".png", ".txt", "md"])
file.dir_create("C:/Users/example/Downloads/directory-to-create/")
file.dir_delete("C:/Users/example/Downloads/directory-to-delete/")
# image tools
image.scale("C:/Users/example/Downloads/boat.png", 1, 1.5)
image.resize("C:/Users/example/Downloads/car.jpg", 1000, 1000)
image.to_png("C:/Users/example/Downloads/plane.jpg")
# you can also operate whole directories
dir_action("C:/Users/example/Downloads/cats/", image.scale, 2, 2)
dir_action("C:/Users/example/Downloads/giraffes/", image.resize, 1000, 1000)
dir_action("C:/Users/example/Downloads/tortoises/", image.to_png)
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-5.0.0.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file forfiles-5.0.0.tar.gz
.
File metadata
- Download URL: forfiles-5.0.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c6dd110205d605dbefe17960b1f51be2fff9f185c9b58a155113f5dd352f236 |
|
MD5 | ecb19e3a9e0543d948ad7cb3199370aa |
|
BLAKE2b-256 | b8835340248f69f3ede414eeda3865bff9f9fb9d18e8f2f59f76e3be92bc9984 |
File details
Details for the file forfiles-5.0.0-py3-none-any.whl
.
File metadata
- Download URL: forfiles-5.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92ac5065850e672e1cd5542850d3521eeb3ee2a0c6b66a82abab4e7537c1e37d |
|
MD5 | 63868d0b7fe81100fcec771112dba903 |
|
BLAKE2b-256 | bfb3da5340dd3e5b74b647b8a32c1338f9786e87031fa7202c070b59a5ead5d6 |