Skip to main content

MurmurHash2 For Python3

Project description

murmurhash is a fast hash function ::
>>> import mmhash2
>>> print(mmhash2.murmurhash64a("zhenhao", 0x1234))
16299279845682521441
>>> print(mmhash2.dechex(mmhash2.murmurhash64a("zhenhao", 0x1234)))
'e232aca990972561'
>>> print(mmhash2.base62encode(mmhash2.murmurhash64a("zhenhao", 0x1234)))
'jq2Se1vfXaN'
>>> print(mmhash2.murmurhash64b('zhenhao', 0x1234))
4178523214822422458

MurmurHash2 http://murmurhash.googlepages.com/ MurmurHash2, 64-bit versions, by Austin Appleby

Modified by hit_zhenhao@163.com

linux python lib

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mmhash2-1.7.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page