sha
Check and get file hashes (using any algorithm)
Installation
$ pip install sha
API
check(fileName, expected, [options,] cb) / checkSync(filename, expected, [options])
Asynchronously check that fileName has a "hash" of expected. The callback will be called with either null or an error (indicating that they did not match).
Options:
- algorithm: defaults to
sha1and can be any of the algorithms supported bycrypto.createHash
get(fileName, [options,] cb) / getSync(filename, [options])
Asynchronously get the "hash" of fileName. The callback will be called with an optional error object and the (lower cased) hex digest of the hash.
Options:
- algorithm: defaults to
sha1and can be any of the algorithms supported bycrypto.createHash
stream(expected, [options])
Check the hash of a stream without ever buffering it. This is a pass through stream so you can do things like:
Release files for entangle 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| entangle-0.0.0.tar.gz | 1.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| entangle-0.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.3 kB
Release files / entangle-0.0.0.tar.gz
| Download URL | entangle-0.0.0.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
603c2e8cba2946ff0e2c2f2bfd95d8527fe65055f036ff28e17c3979f7df4ba7
|
|
BLAKE2b-256 checksum How to use checksums |
ab37ed385dc8f70ce1db6af7ee304fbd5df03bb5310e0a607ccf1419bc80e2a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
|
Release files / entangle-0.0.0-py3-none-any.whl
| Download URL | entangle-0.0.0-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbef518a463ff92c8d7f75116fd2a235cbfd78d679a619aa971bf2ad4bfc3734
|
|
BLAKE2b-256 checksum How to use checksums |
61cb75916fac3df26aaa4c19065ebbcb638ce5d4858e9f35d60e61f8ef989442
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
|