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 → Manage → Publishing and add a trusted publisher:
- Publisher: GitHub
- Repository:
<owner>/hash-checker- Workflow:
ci.yml- Environment:
pypi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dec01b816c7f10bbef3e5cf2c4baead1c78d39d1c2a00190a164ff754c3f1c4f
|
|
| MD5 |
b0c1b7c796537060d548cc6a7a604fa8
|
|
| BLAKE2b-256 |
119b375ba896c3b3fc4850cf9c80b25ed04b5e904cfc1200981f61b46f22a2fd
|
Provenance
The following attestation bundles were made for hashcheck-0.1.3.tar.gz:
Publisher:
ci.yml on thekhoo/hash-checker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hashcheck-0.1.3.tar.gz -
Subject digest:
dec01b816c7f10bbef3e5cf2c4baead1c78d39d1c2a00190a164ff754c3f1c4f - Sigstore transparency entry: 969739469
- Sigstore integration time:
-
Permalink:
thekhoo/hash-checker@fb23e7e85bb71494ca56e9f812a5468966e3f78a -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/thekhoo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@fb23e7e85bb71494ca56e9f812a5468966e3f78a -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f13ce57b14ab539bc11a95f805767806d017b4c7c54987078a40cd5c6b23b3d2
|
|
| MD5 |
d7537e909b79d9124260f4a3e518660a
|
|
| BLAKE2b-256 |
0f83d3c1686ec4376100996968d8f1ed66b06e8ed4d956c9fc10f316eb1ff224
|
Provenance
The following attestation bundles were made for hashcheck-0.1.3-py3-none-any.whl:
Publisher:
ci.yml on thekhoo/hash-checker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hashcheck-0.1.3-py3-none-any.whl -
Subject digest:
f13ce57b14ab539bc11a95f805767806d017b4c7c54987078a40cd5c6b23b3d2 - Sigstore transparency entry: 969739474
- Sigstore integration time:
-
Permalink:
thekhoo/hash-checker@fb23e7e85bb71494ca56e9f812a5468966e3f78a -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/thekhoo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@fb23e7e85bb71494ca56e9f812a5468966e3f78a -
Trigger Event:
push
-
Statement type: