Skip to main content

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

  1. Install the package:

    pip3 install -r requirements.txt
    pip3 install .
    
  2. Run the script to show the resulting filename:

    friendly_hash 2024-07-05-09-15-18.bag
    
  3. Run the script to rename the file:

    friendly_hash -f 2024-07-05-09-15-18.bag
    
  4. Run tests:

    python -m unittest discover
    
  5. Build Package:

    pip3 install setuptools wheel
    python3 setup.py sdist bdist_wheel
    pip3 install twine
    twine upload dist/*
    

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

friendly_hash-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

friendly_hash-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for friendly_hash-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dfcbd83364d7f3fa2bf09ea2452dabfd2aa2cb44320ed6a79df16f63a3b65b08
MD5 fa7bf1f3e86e315859a17f6a7a90cf38
BLAKE2b-256 dd3e9d547f8f30429f8de8832804c46b7175b32e8012fd26f6d13564bd111422

See more details on using hashes here.

File details

Details for the file friendly_hash-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for friendly_hash-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 663a09929d72da709b73482b7376c0e45e25b3225d2df39852072cb62b013303
MD5 e22621d01f7db6ea13c41717ce446970
BLAKE2b-256 2e59ba5449df3bc3a3b3bd6a4657fdc793df53783ae5907f4cd79d66219f2d32

See more details on using hashes here.

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