entangle-0.0.0
توضیحات
Check and get file hashes (using any algorithm)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | entangle-0.0.0 |
| نام | entangle |
| نسخه کتابخانه | 0.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | social-learning |
| ایمیل نویسنده | ben.yan.fan@gmail.com |
| آدرس صفحه اصلی | https://github.com/pypa/sampleproject |
| آدرس اینترنتی | https://pypi.org/project/entangle/ |
| مجوز | - |
# 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 `sha1` and can be any of the algorithms supported by `crypto.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 `sha1` and can be any of the algorithms supported by `crypto.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:
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8.5 | Python |
نحوه نصب
نصب پکیج whl entangle-0.0.0:
pip install entangle-0.0.0.whl
نصب پکیج tar.gz entangle-0.0.0:
pip install entangle-0.0.0.tar.gz