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 99.5 ± 0.7 98.6 101.6 1.00
b3sum 1.5.1 find ./go ... b3sum 314.3 ± 3.9 308.9 320.8 3.16 ± 0.04
dirhash 0.5.0 dirhash -a sha256 ./go 565.1 ± 5.8 558.7 572.3 5.68 ± 0.07
GNU sha2 9.7 find ./go ... sha256sum 752.0 ± 60.7 683.2 817.1 7.56 ± 0.61

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.3.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.3.1-cp37-abi3-win_amd64.whl (210.0 kB view details)

Uploaded CPython 3.7+Windows x86-64

paqpy-1.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (370.3 kB view details)

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

paqpy-1.3.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (355.0 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

paqpy-1.3.1-cp37-abi3-macosx_11_0_arm64.whl (311.6 kB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

paqpy-1.3.1-cp37-abi3-macosx_10_12_x86_64.whl (328.3 kB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: paqpy-1.3.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.3.1.tar.gz
Algorithm Hash digest
SHA256 5b218b26e5d0306d5d29237f0c75e99a58365ead24cce72e280c8b109214eab5
MD5 265deffa9c486d4a0e8f086a276e2443
BLAKE2b-256 da767ebae35828a744c345dd47b6c95817c7b3153ed473e971244757bd1ea804

See more details on using hashes here.

File details

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

File metadata

  • Download URL: paqpy-1.3.1-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 210.0 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.3.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e291cafb52676b7a4f511eba9d1b160ce262a5538ae6b5eb3f4db8f54d23c0fb
MD5 0c1d1bcc46d3064afbfc43b8669a92f8
BLAKE2b-256 ebae1bfe59ed88cd9d15dabc07548c779445fd62066786015dec7d452e97b464

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for paqpy-1.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b964864316b5bc8332181fafca2ef761b979e0de2dc91975b2a9eed2645b6f94
MD5 283e8b9fc01b028ead2f8fc4f0dbbbef
BLAKE2b-256 d2826829621e9b1150e857cb7a8917760eea011898d4ceae5688476ce639714a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for paqpy-1.3.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d85f30453af4d3cb0265caf46f5d91db2ed6b0711a0ca26a3156e52346f338c9
MD5 4936856e283b6591b9ed6bfb9c6c8adb
BLAKE2b-256 c87ef4c07df3b20a49ad5245a12b646304f0dfec7911fc9a53f60b788d2f4bf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for paqpy-1.3.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15294ee6f3b450ae8e1701e1ada43a61a64349104f00635efcd6eabe293541c9
MD5 c917f09333a7aa4aa9c2f4f5a8f7c727
BLAKE2b-256 ac87b7de7bccfa4e2a090c901bb6700fdd83d0344c4a22c861a718e5eb91294b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for paqpy-1.3.1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7db4f24deb319b5553dc1c052b57a3ed4e590c00e07c9b6ace49f8eab90faaed
MD5 0b7dd8129e6bf88a40c542ad423b7e9e
BLAKE2b-256 ead2309c6a9489c1756c5ad521957544bbe9076019ab1388a7f577ea59104b04

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