Skip to main content

A simple cli tool for batch renaming files and folders, written in Rust.

Project description

Renify

A simple cli tool for batch renaming files and folders, written in Rust.

  • 🚀 written in Rust, fast.
  • 🎉 Available on PyPi, install via pip.
  • 🧩 Windows Linux MacOS support.
  • 📔 files and folders support.
  • 🎁 7 renaming methods provided.
  • ⚠️ symlinks are unsupported for now!

Example GIF

Installation

pip install renify

Usage

Renaming - 重命名

For those new to Renify, consider using the following code for interactive mode:

renify -i <File or Folder Path>

Or you can use:

renify -i <File or Folder Path> --target file --method znum --nbits 5 --recursive false --start 1 -y

Rolling back - 退回上一次操作

You can revert to the previous state of the modifications by using:

renify -i . --roll

Help & options

You can get help from:

renify --help

Methods provided

  • random: Sample a u8, uniformly distributed over ASCII letters and numbers: a-z, A-Z and 0-9. 9AFoh, wGRLC, knj9y, ...
  • uuid: Uuid4. de2662a9-fb02-4686-b556-0aca36c0e087
  • time: Local time now. 2023-03-04-22-26-42-222655555
  • num: Numbers start from --start (1 by default). 1, 2, 3, ...
  • znum: Numbers with left zero padding start from --start (1 by default). 001, 002, 003, ...
  • prefix: Add a prefix string to the file stem, along with a delimiter. X.jpg => [--with][--delimiter]X.jpg
  • append: Append a delimiter and a string after the file stem. X.jpg => X[--delimiter][--with].jpg

Note that

Renify will set --indiscriminate false to make sure that the file stems stay consistent. This means that if you have files with the same stems in the same folder, they'll still look the same even after you rename them. Certainly, you can use --indiscriminate to treat each file as an independent entity without considering its relationship with other files.

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

renify-0.1.0.tar.gz (3.5 MB view hashes)

Uploaded Source

Built Distributions

renify-0.1.0-py3-none-win_amd64.whl (515.5 kB view hashes)

Uploaded Python 3 Windows x86-64

renify-0.1.0-py3-none-win32.whl (485.0 kB view hashes)

Uploaded Python 3 Windows x86

renify-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (637.2 kB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

renify-0.1.0-py3-none-manylinux_2_5_i686.manylinux1_i686.whl (697.9 kB view hashes)

Uploaded Python 3 manylinux: glibc 2.5+ i686

renify-0.1.0-py3-none-macosx_11_0_arm64.whl (592.9 kB view hashes)

Uploaded Python 3 macOS 11.0+ ARM64

renify-0.1.0-py3-none-macosx_10_12_x86_64.whl (617.3 kB view hashes)

Uploaded Python 3 macOS 10.12+ x86-64

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