← 返回命令列表

Linux command

pip-hash 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Calculate package hash

pip hash [package.whl]

Calculate SHA256 hash

pip hash -a sha256 [package.tar.gz]

Calculate multiple hashes

pip hash -a sha256 -a sha384 [package.whl]

说明

pip hash computes hash digests of package archives. Outputs hashes in a format suitable for requirements files with hash-checking mode. Supports SHA256, SHA384, and SHA512 algorithms.

参数

-a, --algorithm _algo_
Hash algorithm (sha256, sha384, sha512).

FAQ

What is the pip-hash command used for?

pip hash computes hash digests of package archives. Outputs hashes in a format suitable for requirements files with hash-checking mode. Supports SHA256, SHA384, and SHA512 algorithms.

How do I run a basic pip-hash example?

Run `pip hash [package.whl]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --algorithm _algo_ do in pip-hash?

Hash algorithm (sha256, sha384, sha512).