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
andfolders
support. - 🎁 7 renaming methods provided.
- ⚠️
symlinks
areunsupported
for now!
Installation
pip install renify
# or
cargo 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file renify-0.1.1.tar.gz
.
File metadata
- Download URL: renify-0.1.1.tar.gz
- Upload date:
- Size: 3.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7d7f449dc402f6cd983e24fab86aaf5ddcbefed613a0e372fd02322a4779b0e |
|
MD5 | 6a1e22c20fad682cfca97ef1929755a4 |
|
BLAKE2b-256 | 6927af74f748bc50525626ed719dd59ab83dce615cd1b0d6edc0fd4683e8ccaf |
File details
Details for the file renify-0.1.1-py3-none-win_amd64.whl
.
File metadata
- Download URL: renify-0.1.1-py3-none-win_amd64.whl
- Upload date:
- Size: 525.9 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac1db0def4d94b052799a96722e080f5924e4e67a1dafcf67704901ed605e0fb |
|
MD5 | d6d33c3fee639e3e4b12d6242f6dff2e |
|
BLAKE2b-256 | b631a2c8a9069ee6ef969da6fe557a6eacf16285e374f28cc2b7784912b00ade |
File details
Details for the file renify-0.1.1-py3-none-win32.whl
.
File metadata
- Download URL: renify-0.1.1-py3-none-win32.whl
- Upload date:
- Size: 494.9 kB
- Tags: Python 3, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af5ab9019fa38e9ba62904beff7d28961c4bae1a622452aebb0b4d121d67442a |
|
MD5 | 7b59908b21e4d78cba6a9f2cbb2ad6d2 |
|
BLAKE2b-256 | 15b936f92f65131f99b6d0d8b6e21c261a4e73922850c9e868b0c5d0290e641d |
File details
Details for the file renify-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: renify-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 646.9 kB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8333ed101e1745638f1360f251df658a23905d72ee4ef8c91b58c0fd7c389f68 |
|
MD5 | 3847458e59675513700b1b92d0c75210 |
|
BLAKE2b-256 | 128bde269a61e6d16a9289362838a2c2160586e8adadeb89d815995ca8f76b4d |
File details
Details for the file renify-0.1.1-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
.
File metadata
- Download URL: renify-0.1.1-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 709.6 kB
- Tags: Python 3, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b290699170b30f7afefa287c3d8f8afdceab32e9e8c26b74adb0faef162e2aca |
|
MD5 | 763285a1ea1f45c32c19ed3933062883 |
|
BLAKE2b-256 | 31ea4b3943f625779a2cbfbdfd2750316d19d2f78ac57058ceb83b308fa34555 |
File details
Details for the file renify-0.1.1-py3-none-macosx_11_0_arm64.whl
.
File metadata
- Download URL: renify-0.1.1-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 599.8 kB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ee5a7feae0b85be664f32e2a1058544f22375dfc29e5b701fc3e302cd4ce95d |
|
MD5 | 179362f18723eab5c46466d42a5f7257 |
|
BLAKE2b-256 | 8cb43287924576aef6bd60fe5457a3d4b53315ce1d3b9dc5c5aa73bc9074dffe |
File details
Details for the file renify-0.1.1-py3-none-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: renify-0.1.1-py3-none-macosx_10_12_x86_64.whl
- Upload date:
- Size: 627.4 kB
- Tags: Python 3, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58fb94352ee9a69ada6a097e4fb5612de0f8860622641ff7cb8980778a3e7374 |
|
MD5 | 3ce7c6402736c9e8702fd2cea88cd81c |
|
BLAKE2b-256 | 5834b6749be27de67c0297780505fb6c8a5a2174e6a400fc6b5f803b3e83e68d |