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

Uploaded CPython 3.7+Windows x86-64

paqpy-1.3.3-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.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (355.3 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

paqpy-1.3.3-cp37-abi3-macosx_11_0_arm64.whl (311.8 kB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

paqpy-1.3.3-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.3.tar.gz.

File metadata

  • Download URL: paqpy-1.3.3.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.3.tar.gz
Algorithm Hash digest
SHA256 d99fdc09c44d7fb3da974cecc1266026a52eec1b07125224a2b11bb2c89f558e
MD5 92cb32e67cc257faae865ab96a84001b
BLAKE2b-256 9a6351cc26f6614116d510820ef475df55ddea5f92beca86d160127722482c5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: paqpy-1.3.3-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.3-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 01f3f581c52dd6a046c20b76a00d5b2c43c95eeb82ba0e06fb0766223c783378
MD5 a3625b141ad60927aba398a1cd494161
BLAKE2b-256 8879a38340622b67f7877c002f11cf0ea692b2814749c75e77885d75e6ba1a55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for paqpy-1.3.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d8a27d204ab44e5d8e031821a920c4e450d17d01b5ede73010dfd6d08301d80
MD5 a2918b94fabda226aa2cca292016dbdf
BLAKE2b-256 4367aafde6c050cb5bb0617815a551a645029e4c4c6ebf9959c912ebbbe6adc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for paqpy-1.3.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 44d27acd672126be465a6d896b37f77af1b081c8e15d9e5f40dce891e087a9ee
MD5 88d918f7d9513df4fe767c4ee3e324b5
BLAKE2b-256 8b098ca2764ec5f93404e8d1c3df57496d0694ce2bd1bd5a9512d0c115f5d175

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for paqpy-1.3.3-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2bc59cee59384c0d47c3598852a2269d42bbe1b1ecfedbf04a3c3efcccf57bc
MD5 b3a736afc4fe551ced07da2b38d25295
BLAKE2b-256 f65a9458e9b19b3c373fc2be8d92397547bee44ad81f4ab9e91084da2a931434

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for paqpy-1.3.3-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 aea8dfdddf748e2c95ff9bf5b1920b1ef370ad4c0567e194e0b9fce83a8d5280
MD5 908c5cf7bf848149c6bf46908f715f2f
BLAKE2b-256 5c6054cb15d136cff9cd216c644447335535c07edb15e9a4bd6740ff94e22b5e

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