ssdeep Python Wrapper
This is a straightforward Python wrapper for ssdeep by Jesse Kornblum, which is a library for computing context triggered piecewise hashes (CTPH). Also called fuzzy hashes, CTPH can match inputs that have homologies. Such inputs have sequences of identical bytes in the same order, although bytes in between these sequences may be different in both content and length.
How to use it
To compute a fuzzy hash, use hash function:
>>> import ssdeep
>>> hash1 = ssdeep.hash('Also called fuzzy hashes, Ctph can match inputs that have homologies.')
>>> hash1
'3:AXGBicFlgVNhBGcL6wCrFQEv:AXGHsNhxLsr2C'
>>> hash2 = ssdeep.hash('Also called fuzzy hashes, CTPH can match inputs that have homologies.')
>>> hash2
'3:AXGBicFlIHBGcL6wCrFQEv:AXGH6xLsr2C'
The compare function returns the match between 2 hashes, an integer value from 0 (no match) to 100.
>>> ssdeep.compare(hash1, hash2)
22
More examples are available in the python-ssdeep documentation.
Install
If all requirements are met it is possible to install the wrapper by using pip or easy_install.
$ pip install ssdeep
The build will fail if the ssdeep library isn’t installed. To use the included version of the ssdeep library use the following command.
$ BUILD_LIB=1 pip install ssdeep
For more information have a look at the python-ssdeep documentation.
Tested on …
CentOS 7
Debian 8, 9
Ubuntu 14.04, 16.04, 18.04
Documentation
Feel free to use the prebuild python-ssdeep documentation or use the steps below to build the documentation.
$ cd docs
$ pip install -r requirements.txt
$ make html
Licensing
The code is licensed under the terms of the LGPLv3+.
This wrapper includes the unchanged source distribution of ssdeep version 2.14.1. It is licensed under the GPLv2.
Metadata
Release files for ssdeep-wheel 3.4.1.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ssdeep_wheel-3.4.1.post1.tar.gz | 111.3 kB | With provenance | Details for ssdeep_wheel-3.4.1.post1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ssdeep_wheel-3.4.1.post1-cp36-abi3-win_amd64.whl | CPython 3.6 | abi3 | Windows x86-64 | Details for ssdeep_wheel-3.4.1.post1-cp36-abi3-win_amd64.whl |
| ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.6 | abi3 | Linux glibc 2.17+ x86-64 | Details for ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl | CPython 3.6 | abi3 | Linux glibc 2.12+ x86-32, Linux glibc 2.17+ x86-32 | Details for ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl |
Total release size: 263.0 kB
Release files / ssdeep_wheel-3.4.1.post1.tar.gz
| Download URL | ssdeep_wheel-3.4.1.post1.tar.gz |
|---|---|
| Size | 111.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2c713e503587b1c965248aeb2c9defe69b96e2fd80009e852635c2abe7b53b1
|
|
BLAKE2b-256 checksum How to use checksums |
3be38b9580dde131739c4d83af142be222474ce09dd4c1a5e46f334c0ac179fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 4, 2026.
Transparency logRelease files / ssdeep_wheel-3.4.1.post1-cp36-abi3-win_amd64.whl
| Download URL | ssdeep_wheel-3.4.1.post1-cp36-abi3-win_amd64.whl |
|---|---|
| Size | 63.4 kB |
| Tags | CPython 3.6 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c971245ead92d471d7a7102f1d1eaec7cf74b086c1ae05fde9cb03e5ac78e2bc
|
|
BLAKE2b-256 checksum How to use checksums |
eedba7ee31cb7a4af5e208bc7f64f6d197ea05be48d7652d0c6ea00dba0d65b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 4, 2026.
Transparency logRelease files / ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 45.1 kB |
| Tags | CPython 3.6 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
11a3d5d5ca4454bacc5588285b7aebbb996d424c9d976bcfadb65ab34cd588e1
|
|
BLAKE2b-256 checksum How to use checksums |
2552ecde061c1de4c5725e04f0cfd023fd306f86c4684c594f88f21b47ad83a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 4, 2026.
Transparency logRelease files / ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 43.3 kB |
| Tags | CPython 3.6 Linux glibc 2.12+ x86-32 Linux glibc 2.17+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
6a7c6f523d9a1c37d29deb37ece09838ec4d88d5270cb4e887d17d5bac82b066
|
|
BLAKE2b-256 checksum How to use checksums |
8428da924492010031663538e760a7ee783d40d1fd5faf10ed2cc40126f688a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 4, 2026.
Transparency logSecurity for ssdeep-wheel 3.4.1.post1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for ssdeep_wheel-3.4.1.post1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.