A tool to rename files with human-readable hashes
Project description
friendly_hash
A tool to rename files with human-readable hashes.
Installation
pip3 install friendly_hash
add export PATH=$PATH:~/.local/bin
to your .bashrc or .zshrc
Usage
To show the resulting filename:
friendly_hash 2024-07-05-09-15-18.bag
# peaceful-week-2024-07-05-09-15-18.bag
To actually rename the file:
friendly_hash -f 2024-07-05-09-15-18.bag
# peaceful-week-2024-07-05-09-15-18.bag
For Developer
-
Install the package:
pip3 install -r requirements.txt pip3 install .
-
Run the script to show the resulting filename:
friendly_hash 2024-07-05-09-15-18.bag
-
Run the script to rename the file:
friendly_hash -f 2024-07-05-09-15-18.bag
-
Run tests:
python -m unittest discover
-
Build Package:
pip3 install setuptools wheel python3 setup.py sdist bdist_wheel pip3 install twine twine upload dist/*
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
friendly_hash-0.1.1.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file friendly_hash-0.1.1.tar.gz
.
File metadata
- Download URL: friendly_hash-0.1.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfcbd83364d7f3fa2bf09ea2452dabfd2aa2cb44320ed6a79df16f63a3b65b08 |
|
MD5 | fa7bf1f3e86e315859a17f6a7a90cf38 |
|
BLAKE2b-256 | dd3e9d547f8f30429f8de8832804c46b7175b32e8012fd26f6d13564bd111422 |
File details
Details for the file friendly_hash-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: friendly_hash-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 663a09929d72da709b73482b7376c0e45e25b3225d2df39852072cb62b013303 |
|
MD5 | e22621d01f7db6ea13c41717ce446970 |
|
BLAKE2b-256 | 2e59ba5449df3bc3a3b3bd6a4657fdc793df53783ae5907f4cd79d66219f2d32 |