A simple tool to check file integrity using CRC32 hash in filename
Project description
crctools - A simple tool to check file integrity using CRC32 hash in filename
Having the hash of files in their name makes it so much easier to:
- keep track of their integrity
- deduplicate files
- probably more
This is intended to be a simple to use command-line utility to:
- add CRC32 hash into filename in a widely recognised format (suffix with 8 hex uppercase characters in square brackets)
- verify integrity of files based on hash in file name
- update hash in name
Requirements
This project was developed for Python 3.10 and may not work on lower versions.
Installation
From a terminal execute:
python -m pip install crctools_DavidRodriguezSoaresCUI
On some systems it may be necessary to specify python version as python3
Usage
python -m crctools --help
usage: __main__.py [-h] [--overwrite] [--recursive] [--extensions [EXTENSIONS ...]] [--min_size MIN_SIZE] PATH
positional arguments:
PATH Can be file path or directory (all files in directory will be processed)
options:
-h, --help show this help message and exit
--overwrite Overwrite CRC in filename when verification fails
--recursive (Only with PATH a directory) Enables recursive search for files to verify
--extensions [EXTENSIONS ...]
Restrict files to process with extension whitelist (default: no restriction; you may list
extensions with leading comma)
--min_size MIN_SIZE Restrict files to ones of at least <min_size> bytes (default: 0)
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
Built Distribution
Close
Hashes for crctools-DavidRodriguezSoaresCUI-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 666012a34bd10960aa5a119880af2a6cecd66b8eb6bab2b1a29a776892560b67 |
|
MD5 | ebd660fd76472bf770ba04f2d2c88361 |
|
BLAKE2b-256 | 837c81f786cc9f6edd94cbdd6a1743c4f031bc0f8e7d17c63d3cdb588b9a15f4 |
Close
Hashes for crctools_DavidRodriguezSoaresCUI-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cfc1760b03faae502ccda60ce4d00adec3888819c472d7e23490e567b16a6ea |
|
MD5 | 75a0b95bd25aebe2980914773638d5a3 |
|
BLAKE2b-256 | d9ec2d569db64b9e087a3a20b798bf666de1a7f2855ffce050d55299baa375be |