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.0.tar.gz (4.2 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.0-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: hash_rename-0.3.0.tar.gz
  • Upload date:
  • Size: 4.2 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.0.tar.gz
Algorithm Hash digest
SHA256 b6aedc570687693ab23a1101dae2e9592d43bc2b28fda9942cc52c2b7f8ac4f0
MD5 11729b61e099e2187fc0fdb9f6c5e7dd
BLAKE2b-256 a2b690d97e4cdea3df8d0798e04210d4bd313e7c80f68f09645434ba491373ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hash_rename-0.3.0-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.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ade52d195e6112d3ed4d1183544e522129462e072fe32e33b3550b5e2efc38f4
MD5 c50029873bc9a94ceeea11cd3264b2d7
BLAKE2b-256 9adf17f01a4954823f41857739d0a2c78423db39b4ca789b58af3e5ecc3a37ee

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