Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pydeep2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pydeep2

Python bindings for ssdeep

  • 0.5.1
  • PyPI
  • Socket score

Maintainers
1

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 buffer
  • pydeep.hash_file - returns the ssdeep hash for filepath
  • pydeep.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)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc