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

Uploaded CPython 3.7+Windows x86-64

paqpy-1.3.2-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.2-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.2-cp37-abi3-macosx_11_0_arm64.whl (311.6 kB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

paqpy-1.3.2-cp37-abi3-macosx_10_12_x86_64.whl (328.5 kB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: paqpy-1.3.2.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.2.tar.gz
Algorithm Hash digest
SHA256 b338940b2ee15200858d0b00e6c38722e6f9414308a4c6a274d37450aca14c40
MD5 798a2875daf5a154214651b3e9ad5648
BLAKE2b-256 d2e7333fb6d1cce8f07127a49f71096d14ad18e3e4e8742ff2b32f62cda123a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: paqpy-1.3.2-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.2-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 832680d3186145b15109d475841e43ae7a820f9aea877e3d60729e5b122c46a7
MD5 0d0fd04421f584f06fb872cf3b9b4abc
BLAKE2b-256 086df251b575ca3d0cfddf51b3a2be7f5e6ae7a2be7f8fa7dd76bcb3a2624428

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for paqpy-1.3.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d646185c56680a4c84cb40bf32df689d317cca3ebced2ab9d1cf09bb3365469a
MD5 6d02a1c791abb68efcc7e59410fdcf45
BLAKE2b-256 b144acddd2d4f5520fa77c5c7c64fb1535395a33f4c9da37f6ae3650ce915f37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for paqpy-1.3.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 af9e6ad1a68a25078a54055beb2661b2da73b393396cc5b042595800978695bb
MD5 dad5f9520a9ff8370f9de7cafa871396
BLAKE2b-256 4f2bc3c71a0ab8001cfe6d685371eb120719419ccc52e7194ad641cee8655340

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for paqpy-1.3.2-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee173c0c2370532dabfc3d3c435b904bae0f8ca7919ecc796e2df11a64bab94a
MD5 6ad2289b16e4cbd7f83a64819ad13893
BLAKE2b-256 a3a3138f9b9bab14c01b64fbdd9909322f7c31ac6a89e210f4bf53d4af6d13ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for paqpy-1.3.2-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 348dd7b0624abdd098ce347a75158b200436939a0fdcbea91b8b528bae9ab330
MD5 95adbbd38f6d8838ca08f5e53bcaed29
BLAKE2b-256 c93266ad99cefa96363fabc98355a72d2dc60d5db285f1326dbf8eee7b95bc38

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