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

murmurhash3

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

murmurhash3

a library for MurmurHash3, a set of fast and robust hash functions

  • 2.3.5
  • PyPI
  • Socket score

Maintainers
1

murmurhash3

:Version: 2.3.4 :Download: http://pypi.python.org/pypi/murmurhash3/ :Source: http://github.com/veegee/mmh3 :Keywords: hash, MurmurHash

murmurhash3 is a Python library for MurmurHash (MurmurHash3), a set of fast and robust hash functions. This library is a Python extension module written in C.

Supports Python >= 3.2.0 on all platforms.

Usage

Install::

pip install murmurhash3

Usage::

pip install murmurhash3

>>> import mmh3
>>> mmh3.hash('foo')  # 32-bit signed int
-156908512
>>> mmh3.hash64('foo')  # two 64-bit signed ints (the 128-bit hash sliced in half)
(-2129773440516405919, 9128664383759220103)
>>> mmh3.hash128('foo')  # 128-bit signed int
168394135621993849475852668931176482145
>>> mmh3.hash_bytes('foo')  # 128-bit value as bytes
'aE\xf5\x01W\x86q\xe2\x87}\xba+\xe4\x87\xaf~'
>>> mmh3.hash('foo', 42)  # uses 42 for its seed
-1322301282

License

Public Domain

Authors

MurmurHash3 was created by Austin Appleby

Keywords

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