Skip to main content

A tool to rename files in a folder to be prefixed with a hash of the file's contents

Project description

hash_rename

A quick Python tool to rename files in a folder to be prefixed with a hash of the file's contents.

Usage

pip install hash_rename

hash_rename --help
hash_rename '<path_to_file>'

# or, if you have issues with PATH:
python3 -m hash_rename '<path_to_file>'

Example

Say you have a folder with the following files:

file1.txt
file2.txt
file3.txt

Running the tool renames the files to:

90be47_file1.txt
dbd06c_file2.txt
a7b5b7_file3.txt

License

The Unlicense

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

hash_rename-0.3.1.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

hash_rename-0.3.1-py2.py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page