Skip to main content

Simple file hash checker

Project description

hash-checker

A CLI tool for computing and comparing MD5 hashchecks.

Installation

uv tool install .

Usage

Get the MD5 hash of a file

hashcheck <filepath>
$ hashcheck photo.jpg
d8e8fca2dc0f896fd7cb4cb0031ba249  photo.jpg

Compare files

Pass two or more files — hashes are always printed, and the exit code indicates whether they match.

hashcheck <file1> <file2> [file3 ...]
$ hashcheck file_a.zip file_b.zip
d8e8fca2dc0f896fd7cb4cb0031ba249  file_a.zip
d8e8fca2dc0f896fd7cb4cb0031ba249  file_b.zip
All files match.

$ hashcheck original.zip modified.zip
d8e8fca2dc0f896fd7cb4cb0031ba249  original.zip
aabbcc112233445566778899aabbcc11  modified.zip
Files do not match.

Releasing

Releases are published to PyPI automatically by the CI workflow when a version tag is pushed.

1. Bump the version in pyproject.toml

[project]
version = "0.2.0"

2. Commit the version bump

git add pyproject.toml
git commit -m "chore: bump version to 0.2.0"

3. Tag and push

git tag v0.2.0
git push origin main --tags

The publish job in CI will build the package and upload it to PyPI once all tests pass.

First-time setup: PyPI Trusted Publishing must be configured before the first release. Go to your PyPI project → ManagePublishing and add a trusted publisher:

  • Publisher: GitHub
  • Repository: <owner>/hash-checker
  • Workflow: ci.yml
  • Environment: pypi

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

hashcheck-0.1.3.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

hashcheck-0.1.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file hashcheck-0.1.3.tar.gz.

File metadata

  • Download URL: hashcheck-0.1.3.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hashcheck-0.1.3.tar.gz
Algorithm Hash digest
SHA256 dec01b816c7f10bbef3e5cf2c4baead1c78d39d1c2a00190a164ff754c3f1c4f
MD5 b0c1b7c796537060d548cc6a7a604fa8
BLAKE2b-256 119b375ba896c3b3fc4850cf9c80b25ed04b5e904cfc1200981f61b46f22a2fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for hashcheck-0.1.3.tar.gz:

Publisher: ci.yml on thekhoo/hash-checker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hashcheck-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: hashcheck-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hashcheck-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f13ce57b14ab539bc11a95f805767806d017b4c7c54987078a40cd5c6b23b3d2
MD5 d7537e909b79d9124260f4a3e518660a
BLAKE2b-256 0f83d3c1686ec4376100996968d8f1ed66b06e8ed4d956c9fc10f316eb1ff224

See more details on using hashes here.

Provenance

The following attestation bundles were made for hashcheck-0.1.3-py3-none-any.whl:

Publisher: ci.yml on thekhoo/hash-checker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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