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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file hash_rename-0.3.1.tar.gz.

File metadata

  • Download URL: hash_rename-0.3.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for hash_rename-0.3.1.tar.gz
Algorithm Hash digest
SHA256 4da758ff151d7207c662e69eb76b14cfb59b432f4a4384091ebb7f50bd440e5c
MD5 7ced748a9d606175bb2d5d7af0b0f078
BLAKE2b-256 5158e8d64fc945541c7962ef5ba4ba9dfe9cf577b984697724c79227d524887d

See more details on using hashes here.

File details

Details for the file hash_rename-0.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: hash_rename-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for hash_rename-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 476abcf00065abb6e0f55e0faf477e9987c9fd92717bd2211dc54b530a062e7e
MD5 5e3538297b577a413a30d9e39629594d
BLAKE2b-256 7514150df61be74447882fa1edf854d0d86296099f23230f1ea4928a8967b706

See more details on using hashes here.

Supported by

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