Skip to content

Commit

Permalink
Merge pull request #3 from sroberts/README-cleanup
Browse files Browse the repository at this point in the history
Readme Translation to Markdown
  • Loading branch information
Kiran Bandla committed May 23, 2013
2 parents 4aabf08 + 753d6ec commit 90ad727
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 45 deletions.
45 changes: 0 additions & 45 deletions README

This file was deleted.

43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# pydeep

Python/C bindings for the ssdeep library at http://ssdeep.sourceforge.net:
* hash_buf / hash_bytes - returns the ssdeep hash for a given buffer
* hash_file - returns the ssdeep hash for filepath
* compare - returns the % match between 2 hashes

```python
import pydeep
pydeep.hash_buf('somedata')
pydeep.hash_file('path-to-file')
pydeep.compare('hash1','hash2')
```

## Replacing pyssdeep with pydeep

Pyssdeep was segfaulting manytimes on OSX. Thats why i quickly wrote pydeep.

Instead of:
```python
from ssdeep import ssdeep
s = ssdeep()
s.hash_file('some-file')
```

You can replace the first 2 lines with:
```python
import pydeep as s
```

And you should be all set.

### Tested On
* OSX 10.8 - x86_64
* OSX 10.7 - x86_64, i386
* CentOS 5 - x86_64, i386

### Tested Against
* ssdeep-2.9
* ssdeep-2.8

### Requires
* Python 2.5 or later

0 comments on commit 90ad727

Please sign in to comment.