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
Note
if
frenamer --help
don't work with you usepython3 -m frenamer --help
orpy -m frenamer --help
for windows
Usage
Help message
Usage: 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.
--help Show this message and exit.
Commands:
rename Rename directories with random names or alphabetical order.
unrename unrename directories, fetching old names from json files.
Rename
Help message
Usage: frenamer rename [OPTIONS] DIRECTORIES...
Rename directories with random names or alphabetical order.
Arguments:
DIRECTORIES... Directories whose contents you want to rename. [required]
Options:
-r, --random Rename with random names, or alphabetically.
-l, --length INTEGER Random name length. [default: 10]
-s, --save-date Save directory names before and after renaming.
-f, --filename TEXT The name of the json file in which the directory names
are to be saved. [default: rename_data.json]
--help Show this message and exit.
Alphabetically
$ frenamer rename <my_directory>
$ frenamer rename --save-date <my_directory>
$ frenamer rename --save-date --filename data.json <my_directory>
Randomly
$ frenamer rename --random <my_directory>
$ frenamer rename --random --length 15 <my_directory>
Unrename
Help message
Usage: frenamer unrename [OPTIONS] DIRECTORIES...
unrename directories, fetching old names from json files.
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.
-f, --filename TEXT The name of the json file from which the directory
names will be extracted. [default: rename_data.json]
--help Show this message and exit.
$ frenamer unrename <my_directory>
$ frenamer unrename --filename data.json <my_directory>
$ 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.2.2.tar.gz
(9.9 kB
view details)
Built Distribution
frenamer-0.2.2-py3-none-any.whl
(10.0 kB
view details)
File details
Details for the file frenamer-0.2.2.tar.gz
.
File metadata
- Download URL: frenamer-0.2.2.tar.gz
- Upload date:
- Size: 9.9 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 | cd8dea093036ac837ccec0529ae00e5b2d34d7af55a687e0be21db3ed505e6d2 |
|
MD5 | b5df23492affadd0b480132409e7e784 |
|
BLAKE2b-256 | 9175ad2446f9d750d5afe083ab2acb9dd71b84375c94a2ed6fd5f7ead11bbe3c |
File details
Details for the file frenamer-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: frenamer-0.2.2-py3-none-any.whl
- Upload date:
- Size: 10.0 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 | cdf28035631513d8ae1d9c94f9902e91b2b7f0b4603cb00d6eb41ffc0b3cb771 |
|
MD5 | 144d789513d99fd476de27b47b89af6d |
|
BLAKE2b-256 | f2a7404f3f6c164945f6cb1de7367a05990c911d0eb448e7fc5054849da1102e |