Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/james7132/py-meowhash
A simple python binding for cmuratori/meow_hash, an extremely fast non-cryptographic hash function.
https://github.com/james7132/py-meowhash
hash hash-functions hashing-algorithm
Last synced: 3 months ago
JSON representation
A simple python binding for cmuratori/meow_hash, an extremely fast non-cryptographic hash function.
- Host: GitHub
- URL: https://github.com/james7132/py-meowhash
- Owner: james7132
- License: mit
- Created: 2018-10-25T02:00:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-27T21:03:01.000Z (about 6 years ago)
- Last Synced: 2024-10-03T18:22:41.535Z (3 months ago)
- Topics: hash, hash-functions, hashing-algorithm
- Language: C
- Homepage:
- Size: 10.7 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py-meowhash
py-meowhash is a simple python binding for
[cmuratori/meow_hash](https://github.com/cmuratori/meow_hash), an extremely fast
non-cryptographic hash function. Meant to act as a drop in replacement for any
`hashlib` hashing algorithm.**NOTE**: meow_hash, and by proxy py-meowhash are considered experimental or
alpha quality software and should be used as such.## Usage
Can be used as a drop in replacement for `hashlib` algorithms:
```python
hash = meowhash.new()
hash.update(b'hello world')
d = hash.digest()
h = hash.hexdigest()
hash2 = hash.copy()# Available attributes
hash.name
hash.digest_size
hash.hash_size
```## Caveats and Known Issues
This library currently is not portable and requires AVX instruction support on
the local machine to run properly. The library does not check for this support
as of right now and may segfault on callingPlease check the
[meow_hash issue tracker](https://github.com/cmuratori/meow_hash/issues) for
for other issues that one may encounter.