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.2.0.tar.gz (4.1 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.2.0-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: hash_rename-0.2.0.tar.gz
  • Upload date:
  • Size: 4.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 1ac407f2213600b99d1f817371f366a5f95b5616858d02d932535021992fcbda
MD5 f713b7e8306183490dd38f34b7eb47c8
BLAKE2b-256 89a6970ad5cb768936590c7083d4fcdb9ebcac5766108acafa9006dbd2312d66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hash_rename-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 61d3d2791a8873853bb3c02c361f24d6988cbed1daf673dd6417bfb3faffb052
MD5 ff1202a14d85dce7dd6d78a6e50a1ee6
BLAKE2b-256 99a60cec9c4b8771d6944fc8ba418a49ad9515a8d9263a695e3e30ec24003b69

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