You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ideally, avoid passing a bytes array ... this should support "a million gigabyte" files in theory,
so the bytes should be "streamed" or "piped" into the mmh3 function
currently, mmh3 says
mmh3.hash_from_buffer(fd)
TypeError: a bytes-like object is required, not '_io.BufferedReader'
The text was updated successfully, but these errors were encountered:
getting the murmur3 hash of a text file is trivial,
and i can get the murmur2 hash of binary files,
see https://github.com/milahu/murmurhash-cli-python
how to get the murmur3 hash of a binary file?
there is https://pypi.org/project/mmh3-binary/ but its an "empty fork"
expected API
fd
is an io.BufferedReaderideally, avoid passing a bytes array ... this should support "a million gigabyte" files in theory,
so the bytes should be "streamed" or "piped" into the mmh3 function
currently, mmh3 says
The text was updated successfully, but these errors were encountered: