Rename and unrename all files in the directory, alphabetically or randomly
Project description
Table of Contents
Requirements
- Python >= 3.8
Installation
PyPi
$ pip3 install frenamer
GitHub
$ git clone https://github.com/TheAwiteb/frenamer/
$ cd frenamer
$ sudo python3 setup.py install
Update
$ python3 -m pip install frenamer --upgrade
Usage
Help message
Usage: python3 -m frenamer [OPTIONS] COMMAND [ARGS]...
Frenamer (File-Renamer) Tool help you to rename files and directories
alphabetical or random names.
Options:
-V, --version Frenamer (File-Renamer) version.
-h, --help Show this message and exit.
Commands:
rename rename directories.
unrename unrename directories.
Rename
Help message
Usage: python3 -m frenamer rename [OPTIONS] DIRECTORIES...
rename directories.
Arguments:
DIRECTORIES... Directories whose contents you want to rename. [required]
Options:
-r, --random Rename with random names, or alphabetically.
[default: False]
-l, --length INTEGER Random name length. [default: 10]
-s, --save-date Save directory names before and after renaming.
[default: False]
-f, --filename TEXT The name of the json file in which the directory
names are to be saved. [default:
rename_data.json]
-h, --help Show this message and exit.
Alphabetically
$ python3 -m frenamer rename <my_directory>
$ python3 -m frenamer rename --save-date <my_directory>
$ python3 -m frenamer rename --save-date --filename data.json <my_directory>
Randomly
$ python3 -m frenamer rename --random <my_directory>
$ python3 -m frenamer rename --random --length 15 <my_directory>
Unrename
Help message
Usage: python3 -m frenamer unrename [OPTIONS] DIRECTORIES...
unrename directories.
Arguments:
DIRECTORIES... Directories whose contents you want to unrename. [required]
Options:
-d, --delete Delete the JSON files that were used in the unrenaming
after completion. [default: False]
-f, --filename TEXT The name of the json file from which the directory
names will be extracted. [default: rename_data.json]
-h, --help Show this message and exit.
$ python3 -m frenamer unrename <my_directory>
$ python3 -m frenamer unrename --filename data.json <my_directory>
$ python3 -m frenamer unrename --delete <my_directory>
Discussions
Question, feature request, discuss about frenamer here
Issues
You can report a bug here
License
The MIT License (MIT). Please see License File for more information.
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
frenamer-0.0.1.tar.gz
(8.3 kB
view details)
Built Distribution
File details
Details for the file frenamer-0.0.1.tar.gz
.
File metadata
- Download URL: frenamer-0.0.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a06ac98b1850b684e952db141f13147a116a87a139d6dc4f2a044a080eff765 |
|
MD5 | 6a5ab16013b202a137584e3d92e5e8ca |
|
BLAKE2b-256 | c59a89bd7ec887ca0b97207036d1fea4ec05ae5d58a7a91cdb7b5b96a5b34f40 |
File details
Details for the file frenamer-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: frenamer-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8e29a51218bc5ab4d8d76c5501e30e6f416e1fa0dbf8b9d450359e94d60b792 |
|
MD5 | 0f53b2f127bce34244e99be6bb23fa29 |
|
BLAKE2b-256 | 74a7554311ee439de08b9d43eb9b0090d4719190b41a1eb8f9be240a49c8d7dc |