Metadata-Version: 2.1
Name: renify
Version: 0.1.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Environment :: Console
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python :: Implementation :: CPython
License-File: LICENSE
Summary: A simple cli tool for batch renaming files and folders, written in Rust.
Keywords: automation,rename,cli,rust,python
Author: Jamjamjon <jamjamjon.usls@gmail.com>
Author-email: Jamjamjon <jamjamjon.usls@gmail.com>
License: MIT
Requires-Python: >=3.7
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Repository, https://github.com/jamjamjon/renify

# 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](assets/demo.gif)

# Installation
```
pip install renify
```

# Usage
### Renaming - 重命名
For those new to Renify, consider using the following code for **interactive mode**:
```bash
renify -i <File or Folder Path>
```

Or you can use:
```bash
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:
```bash
renify -i . --roll
```

### Help & options
You can get help from:
```bash
renify --help
```

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

