Python bindings for ssdeep
Project description
pydeep
Python/C bindings for the ssdeep library.
Forked from kbandla/pydeep
- Fixed
DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
- Published wheels at PyPI for x86_64 and aarch64
pydeep.compare
accepts also string- Small optimisations
Installation
Requires Python 3.6 or later. For older Python version, you can use original pydeep.
From PyPI:
pip install pydeep2
From source (ssdeep library must be already installed):
python setup.py build
python setup.py test
sudo python setup.py install
Usage
Methods:
pydeep.hash_buf
/pydeep.hash_bytes
- returns the ssdeep hash for a given bufferpydeep.hash_file
- returns the ssdeep hash for filepathpydeep.compare
- returns the % match between 2 hashes
Example:
import pydeep
hash1 = pydeep.hash_buf('somedata')
hash2 = pydeep.hash_file('/path/to/file')
pydeep.compare(hash1, hash2)
Copyright
- 2011-2012 Kiran Bandla kbandla@in2void.com
- 2022 Jakub Onderka
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file pydeep2-0.5.1.tar.gz
.
File metadata
- Download URL: pydeep2-0.5.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44ce447e3253a69d3393f3cc53e3a87a48fe3ff9861793736a7bc218a1b95d77 |
|
MD5 | 575a77ba7357406c67301ad791180676 |
|
BLAKE2b-256 | 9cc8be33c91658144bbce40c7e43418cc2237d566fc263cb3de24397b12f523a |
File details
Details for the file pydeep2-0.5.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 23.0 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7809a1d6640bdbee68f075d53229d05229e11b4711f232728dd540f68e6483a4 |
|
MD5 | ce7f4bf83f03af6680b1c3dccfff9033 |
|
BLAKE2b-256 | bb5b296f2cc63758ee22ca7826250d08967afc7909cb7b386646b9a1e55446ea |
File details
Details for the file pydeep2-0.5.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 24.4 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1cb4757db97ac15ddf034c21cd6bab984f841586b6d53984e63c9a7803b2cd4 |
|
MD5 | 8edc7f7f87e35774c83cf9c6ce74c14e |
|
BLAKE2b-256 | f07132e8b78891f8413d7f4c890dbfee78867c401a785239efdbc1a8d7bda559 |
File details
Details for the file pydeep2-0.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 22.8 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a13fca9be89a9fa8d92a4f49d7b9191eef94555f8ddf030fb2be4c8c15ad618c |
|
MD5 | d5836eb8372aa67be995eedd74c1c6f3 |
|
BLAKE2b-256 | 3358b5db08523ce897ff9564951e41a68fb8e21d66d2ec87338f63646fb5e3c6 |
File details
Details for the file pydeep2-0.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 24.2 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f248e3161deb53d46a9368a7c164e36d83004faf2f11625d47a5cf23a6bdd2cb |
|
MD5 | d65d11e308fe9eee654cb1e17d999f5e |
|
BLAKE2b-256 | bc41e1b0e66de8fe57ea4b14c47d1632e0f66e52cb982fe8d8964beebea5d106 |
File details
Details for the file pydeep2-0.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 22.8 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2283893e25826b547dd1e5c71a010e86ddfd7270e2f2b8c90973c1d7984c7eb7 |
|
MD5 | 93ff43798586556573a1978f0be89ffd |
|
BLAKE2b-256 | dc44eaf6a23d93e30d86ab92ca4c5201c6a20b428769809f58c04873d0c70c6e |
File details
Details for the file pydeep2-0.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 24.2 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e14b310b820d895a7354be7fd025de874892df249cbfb3ad8a524459e1511fd8 |
|
MD5 | d533db67183cf4aeeee26ea610888225 |
|
BLAKE2b-256 | 4984cfda6e45cceedf4657b8631b4f78c1771a1ba46e0147f70b44d13106ec58 |
File details
Details for the file pydeep2-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 22.7 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2063cbb053e5ce684cc45fff3e72c063b26aa85e41e6435cab0c658ad9e3e1e |
|
MD5 | 1d5f954da9714d529af7f66974132f3e |
|
BLAKE2b-256 | a93c7aba9e12676615fa3f1759c8ceaaaf7e8e1f9be5c402fa607d94fdb0853a |
File details
Details for the file pydeep2-0.5.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 24.0 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | add24d7aa0386b285fd3e99632719714efabeb13d7b03a015b7c64d1f588f815 |
|
MD5 | caec4505d58585d845b8f8945c3ec034 |
|
BLAKE2b-256 | cdac886612b4006a5f1c52e43bc1306f607f50ad518d9be8fa2ca12b21b74d54 |
File details
Details for the file pydeep2-0.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 22.6 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef00ca5681a2c4ad5dc744db5f8ae5406d3f13121b38d84cc58dfb8fce4c3dc2 |
|
MD5 | ff30e3735ce3466fa3717d0375b12493 |
|
BLAKE2b-256 | b48c1900ee62d00eb29f14ae16a18d1f15ba163d762830439ef100c6d52b3a88 |
File details
Details for the file pydeep2-0.5.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 24.0 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c65dc910d782fa2bc97e1b28a78d77c4bada037d14b63e3e75a1fa5918d642c5 |
|
MD5 | f57e87438737943bf4efa3b5a8934497 |
|
BLAKE2b-256 | 82a86e8a4cd7c71ca8acf7b790b768ce616fd8434edd3ed91246e7d8c78c0f15 |
File details
Details for the file pydeep2-0.5.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 22.5 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bf00de2fe1918e4d698fe8195a5c0a3a0c3050a2e3e15583748cfd20b427153 |
|
MD5 | e2fb49a4e16404a13cea10d16bdb3af3 |
|
BLAKE2b-256 | f6c6b0b02128a4814605ad9e09284ca34bce65cb42339c9e934fa8305349f6f9 |
File details
Details for the file pydeep2-0.5.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 23.9 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 199d05d8b4b7544509a2ba4802ead4b41dfe7859e0ecea9d9be9e41939f11660 |
|
MD5 | 08aa0c7fbca6c5226082d01921f0fbc5 |
|
BLAKE2b-256 | a18d97d6997129f6d10644f2eff93246ba9da986678944d6efe22f0765d7f423 |
File details
Details for the file pydeep2-0.5.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 22.5 kB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ca68f7d63e2ef510d410d20b223e8e97df41707fb50c4c526b6dd1d8698d9e6 |
|
MD5 | 7f5bd75c0d3e64db03f52117350e1831 |
|
BLAKE2b-256 | 8c8659711573fb14f804bc6f0d1e171a01fce0b5f513b246d46b34aec3047ce0 |
File details
Details for the file pydeep2-0.5.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: pydeep2-0.5.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 23.9 kB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fedc1c9660cb5d0b73ad0b5f1dbffe16990e6721cbfc6454571a4b9882d0ea4 |
|
MD5 | 55e1fc31b090d4b96e1273a61ae5a4a3 |
|
BLAKE2b-256 | 522bbd43c956694eb71ed5dc583282592c3f26370117b2b001bf8bef53be361a |