A simple tool to bulk rename files in a directory
Project description
BulkRenamerPy
Simple bulk rename tool, rename files in a directory with a given pattern, prefix and padding.
By default, rename is incremental, so if you have a file image.png, it will rename 1.png, 2.png and so on, a prefix and padding can be specified.
Rename is made using regex, also possible to sort and limit files to rename.
Written in python with rich_click.
Installation
pip install BulkRenamerPy
Example Usage
Rename all files with png and jpg extension
bulk_rename path/to/dir/ ".*.(png|jpg)"
Rename all files that contain "image", add prefix "Wallpaper" with 2 padding
bulk_rename path/to/dir/ "image*" "Wallpaper" -p 2
Rename all files limited to 10, sorted by size
bulk_rename path/to/dir/ ".*" -l 10 -s size
More info using --help
bulk_rename --help
Friendly Reminder
This tool will rename any file that you have permissions, and can cause damage, specially on UNIX systems, so please be careful and use it with caution. I advise to run using --dry-run
flag first.
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
Built Distribution
Hashes for BulkRenamerPy-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a26d384d60f2638e3e7fd9c1110247c83e61913c427ecb5dbd44c6cdd587655 |
|
MD5 | d8728194d52a7da79ab1d1eb15d9f8f2 |
|
BLAKE2b-256 | b12469bb8b0286c1775587879ec179f746231a012f5b62375a76cda94a6f5142 |