Compute ETags and MD5s
The tool provides methods to calculate ETags for Objects on AWS S3, and also md5s, on local objects. It also allows comparing ETags or md5s to check the integrity of files, both locally and on AWS S3, given a list of files and their calculated ETags.
Installation
pip install compETAG
Usage
The following example will compute ETags for local files with the same chunk size used by AWS on S3:
compute_etags -i <file1> <file2> .... -m etag -s 8MB -o out.txt
Chunk size can be set to any desired value:
compute_etags -i <file1> <file2> .... -m etag -s 1GB
With mode fixed at md5, the resulting calculation will be md5 hashes:
compute_etags -i <file1> <file2> .... -m md5
To retrieve ETags from objects on AWS S3, setting mode to s3uri will redirect the tool to AWS S3, provided a bucket/s, key/s, and pattern/s (optional):
compute_etags -m s3uri -b <bucket1> <bucket2> .. -k <key1> <key2> .. -p <pattern1> <pattern2> ..
To check the integrity of local files or AWS S3 objects, the following will calculate or retrieve ETags or md5s on the list of files provided in a text file, and compare the results to the provided hashings. Each row in the input text file represents a pair of ETag/md5 hash and a file name.
-
Checking ETags of local files:
compute_etags -c <input.txt> -m etags -
Checking md5s of local files:
compute_etags -c <input.txt> -m md5 -
Checking ETags of AWS S3 objects:
compute_etags -c <input.txt> -m s3uri -b <bucket1> <bucket2> .. -k <key1> <key2> ..
Metadata
Release files for compETAG 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| compETAG-0.0.3.tar.gz | 5.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| compETAG-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / compETAG-0.0.3.tar.gz
| Download URL | compETAG-0.0.3.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8ee0ab092811ef73ff77daaedb2e4fe5823a44ce42fa4190b2df28e21f21570
|
|
BLAKE2b-256 checksum How to use checksums |
b03aa8276381aa21ce13755bcb264a0d90f71875eb15aceb32d2f6b8744255e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.5
|
Release files / compETAG-0.0.3-py3-none-any.whl
| Download URL | compETAG-0.0.3-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c17590edf405aa6ae5055c8ed38cf605a56a59be24af0955e4b74966ff58ebc
|
|
BLAKE2b-256 checksum How to use checksums |
1fd3ba2d4e31c616dc7b3d9ad45eb606325e2c7a82b277bcf70c07179c6d10c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.5
|
Security for compETAG 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.