mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
612 B
Plaintext
26 lines
612 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# pip hash
|
|
|
|
> Compute hashes of package archives for verification.
|
|
> More information: <https://pip.pypa.io/en/stable/cli/pip_hash/>.
|
|
|
|
- Generate hash for a package file:
|
|
|
|
`pip hash {{path/to/package.whl}}`
|
|
|
|
- Generate hash using a specific algorithm:
|
|
|
|
`pip hash {{[-a|--algorithm]}} {{sha256|sha384|sha512|...}} {{path/to/package.whl}}`
|
|
|
|
- Generate hashes for multiple files:
|
|
|
|
`pip hash {{path/to/package1.whl path/to/package2.whl ...}}`
|
|
|
|
- Generate hash for downloaded archive:
|
|
|
|
`pip hash {{path/to/package.tar.gz}}`
|