Skip to content

Commit 0b35baf

Browse files
swastim01dmmqzManagor
authored
pip-hash: add page (#18385)
Co-authored-by: Dylan <[email protected]> Co-authored-by: Managor <[email protected]>
1 parent 0f84a36 commit 0b35baf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pages/common/pip-hash.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# pip hash
2+
3+
> Compute hashes of package archives for verification.
4+
> More information: <https://pip.pypa.io/en/stable/cli/pip_hash/>.
5+
6+
- Generate hash for a package file:
7+
8+
`pip hash {{path/to/package.whl}}`
9+
10+
- Generate hash using a specific algorithm:
11+
12+
`pip hash {{[-a|--algorithm]}} {{sha256|sha384|sha512|...}} {{path/to/package.whl}}`
13+
14+
- Generate hashes for multiple files:
15+
16+
`pip hash {{path/to/package1.whl path/to/package2.whl ...}}`
17+
18+
- Generate hash for downloaded archive:
19+
20+
`pip hash {{path/to/package.tar.gz}}`

0 commit comments

Comments
 (0)