Skip to main content

Hash file or directory recursively.

Project description

Build PyPI MIT licensed

paqPy

Hash file or directory recursively.

Python bindings to the Rust paq library.

Powered by blake3 cryptographic hashing algorithm.

Performance

The Go programming language repository was used as a test data source (157 MB / 14,490 files).

Tool Version Command Mean [ms] Min [ms] Max [ms] Relative
paq latest paq ./go 77.7 ± 0.6 77.1 80.2 1.00
b3sum 1.5.1 find ./go ... b3sum 327.3 ± 3.6 320.2 332.3 4.21 ± 0.05
dirhash 0.5.0 dirhash -a sha256 ./go 576.1 ± 2.9 570.8 580.3 7.41 ± 0.06
GNU sha2 9.7 find ./go ... sha256sum 725.2 ± 43.5 692.2 813.2 9.33 ± 0.56
folder-hash 4.1.1 folder-hash ./go 1906.0 ± 78.0 1810.0 2029.0 24.53 ± 1.02

See paq benchmarks documentation for more details.

Installation

Install From PyPI

pip install paqpy

Install From Repository (Unstable)

Not recommended due to instability of main branch in-between tagged releases.

  1. Clone this repository.
  2. Run pip install maturin to install maturin.
  3. Run maturin develop --release from repository root.

Usage

import paqpy

source = "/path/to/source"
ignore_hidden = True # .dir or .file
source_hash = paqpy.hash_source(source, ignore_hidden)

print(source_hash)

Visit the paq homepage for more details.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paqpy-1.4.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

paqpy-1.4.1-cp37-abi3-win_amd64.whl (207.3 kB view details)

Uploaded CPython 3.7+Windows x86-64

paqpy-1.4.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (366.9 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

paqpy-1.4.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (350.8 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

paqpy-1.4.1-cp37-abi3-macosx_11_0_arm64.whl (307.5 kB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

paqpy-1.4.1-cp37-abi3-macosx_10_12_x86_64.whl (323.1 kB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

Details for the file paqpy-1.4.1.tar.gz.

File metadata

  • Download URL: paqpy-1.4.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for paqpy-1.4.1.tar.gz
Algorithm Hash digest
SHA256 f6cf3a78ae3c0456884e09d1f3c52089a81b97a3754dffd6572f9e64ba0478b9
MD5 841e36aaab00b1755ebfdd434a918ef8
BLAKE2b-256 4d377c0c21830188e2e9fd43649974cd015491aa6e6ee400eac96d2c9c9edf74

See more details on using hashes here.

File details

Details for the file paqpy-1.4.1-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: paqpy-1.4.1-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 207.3 kB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for paqpy-1.4.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9ab2cbeb34bdb3877d46a26883ee27ad92d69cb43f4beb604422650e7efe7bb3
MD5 12003f502df8fbb22fc66deaf7210d65
BLAKE2b-256 0a333b224a8e56d84996149f288860cc0575adbb41a38122941e01448e77f719

See more details on using hashes here.

File details

Details for the file paqpy-1.4.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for paqpy-1.4.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d8e8bff6f35336d87a737b2195e0bb51b6a90fb26cef9e7d9ae514f3bc5309a
MD5 28e7c9b905e7970dc0090e5a25a07b50
BLAKE2b-256 4f4b80d98039c65900d18c55ae6c06cf3fd3432048c976e7a500424ee6d33a32

See more details on using hashes here.

File details

Details for the file paqpy-1.4.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for paqpy-1.4.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2729750d6f1c0919364d9bfe1ba6ac93f302064accfc704579a57e93efa2759d
MD5 6509231453e594874f07099a22d46e02
BLAKE2b-256 56c81101801cd93adfe3a626f569594605a555ef259a37222ab9c16b152a2e62

See more details on using hashes here.

File details

Details for the file paqpy-1.4.1-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for paqpy-1.4.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d8ee9cf696393c20a7a455f263debdc40c9a098faa56c10318b8770ec91f769
MD5 7c36bf986fca7c1346ebc4129028902a
BLAKE2b-256 a2b5767a285feb4ff64fc5c0a74814eae54e578318dfa9c3d341af4b75c41c05

See more details on using hashes here.

File details

Details for the file paqpy-1.4.1-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for paqpy-1.4.1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6d412b9ea47f98508a1e5d64427bf96cfcb28688af50da43e475784819e2fb64
MD5 7d83e1996dcb7ac71014e79025793f95
BLAKE2b-256 ad93829a0cb2de6e45f075a84dd84ae077c4602e9cd71a90781db127284a1bd6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page