Skip to main content

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

BulkRenamerPy-0.1.5.tar.gz (16.0 kB view hashes)

Uploaded Source

Built Distribution

BulkRenamerPy-0.1.5-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page