Skip to main content

A blazingly fast, portable hash function with proven statistical guarantees

Project description

SeaHash

CI PyPI PyPI - Python Version PyPI - Wheel PyPI - Status PyPI - License

Python bindings to seahash - A blazingly fast, portable hash function with proven statistical guarantees.

Installation

pip install seahash

Wheels should be available for most platforms. If you need a wheel which isn't provided, raise an issue.

Compiling from source will require a Rust toolchain.

Usage

Hashing can be done in 2 ways:

Primitive functions

import seahash

# Plain hash
seahash.hash(b"123")

# Hash with custom seeds
seahash.hash_seeded(b"123", 4, 5, 6, 7)

Both methods return an int.

hashlib-compatible class

For convenience, a hashlib-compatible class is provided:

import seahash

s = seahash.SeaHash()

s.update(b"123")

s.digest()
s.hexdigest()

The underlying int digest can be obtained with intdigest.

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

seahash-0.2.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distributions

seahash-0.2.0-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view details)

Uploaded PyPy manylinux: glibc 2.5+ x86-64

seahash-0.2.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.5+ x86-64

seahash-0.2.0-cp310-none-win_amd64.whl (129.3 kB view details)

Uploaded CPython 3.10 Windows x86-64

seahash-0.2.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

seahash-0.2.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (469.1 kB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

seahash-0.2.0-cp39-none-win_amd64.whl (129.6 kB view details)

Uploaded CPython 3.9 Windows x86-64

seahash-0.2.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

seahash-0.2.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (470.3 kB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

seahash-0.2.0-cp38-none-win_amd64.whl (129.1 kB view details)

Uploaded CPython 3.8 Windows x86-64

seahash-0.2.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

seahash-0.2.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (469.7 kB view details)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

seahash-0.2.0-cp37-none-win_amd64.whl (129.1 kB view details)

Uploaded CPython 3.7 Windows x86-64

seahash-0.2.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

seahash-0.2.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (469.8 kB view details)

Uploaded CPython 3.7m macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

File details

Details for the file seahash-0.2.0.tar.gz.

File metadata

  • Download URL: seahash-0.2.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.12.20

File hashes

Hashes for seahash-0.2.0.tar.gz
Algorithm Hash digest
SHA256 df239f29bb393b60b0c4068e0c78b44621dda100a923b7ed0351346a108772e7
MD5 72f35ede98046620fbd0ca4951f1c1c7
BLAKE2b-256 14c8b52ae1657da5da436293a686fb30c5c199ff548590be731474e860dabeb5

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for seahash-0.2.0-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9955843fc8a5bc93db2aebc1912d8e14bbf24329da3b8aa316fcb7bdfd284c8e
MD5 f8eb2be9000008a65754cc8d5736e068
BLAKE2b-256 c7ddc5ba35dc10f2ab53fb7103e1a9d55787202c9e96e0ea05b9c03dab3d677a

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for seahash-0.2.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5ec322b14e846925d1e56a88f1c68ba2a4806647e58f6893458a517a9d65cf75
MD5 b5c648787de2529e244159585f51d0e2
BLAKE2b-256 8c8c732b01e0525ecb9cad7f1ec240e0569d5000046f3de8086d40426073acca

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for seahash-0.2.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 d1e3753004809eb738cbbfd3291be687e77650ca543273c83ffd2f58334e7715
MD5 2fa971ce9926eeea2d8cac1b2d9b8d66
BLAKE2b-256 9c6e5f6699d1dbda13a013ca3a5724c6644f3a646f19a4fa787ac0fbfc70dc47

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for seahash-0.2.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 dae04b6f2f375e32a705aeadb191a850de496d1958a9244b8d345d6d05bb702d
MD5 3bd811ecd4d4a1c987a5de78563af996
BLAKE2b-256 bb87b53b650becfbe08686bfdd2cf424b253d19015ba0b1801c2c03f62853b99

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for seahash-0.2.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 3f8a6fe24c2f5282416de593d93275c618957691586fe6b1805d8de890e4c32b
MD5 4c19367eaa66ff33b881e69aacff669f
BLAKE2b-256 2a00aae736929bd79bd2a47c31131e498a34a7c55b3c407ad2401dd5f273ce11

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-cp39-none-win_amd64.whl.

File metadata

  • Download URL: seahash-0.2.0-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 129.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.12.20

File hashes

Hashes for seahash-0.2.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 2bb17af11423b055e8e69547af7210e0d76f21a8ce5d1b8db2730eae0a236270
MD5 9d60f2138304d2ecd8313f1372aead71
BLAKE2b-256 a56f27599793ca3d773a443888ead8b62bbd6fdc7b6cfeaa9f36707be77fb356

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for seahash-0.2.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2df1a3748732319cab5b751eb3d835701abf3bb80827bb8ac3a601e1f6e35e7e
MD5 e21f1d16a64afd99b78412f7ed630c71
BLAKE2b-256 26a0a053f4df58ec715b305bc353e491ccbd3d756df40b7a0343d3392b2e16bc

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for seahash-0.2.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ed2c35ac49092cd8d0778fd7e213fdaf670d5f51059149e70a6e3aa52e9a450a
MD5 5fad3f0c7e2e1dda7918cc11bc741229
BLAKE2b-256 8a0bb748d0baf20c025b5c2cd619473d1d82ceefc5bd9b379c24439fc9b09ce7

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-cp38-none-win_amd64.whl.

File metadata

  • Download URL: seahash-0.2.0-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 129.1 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.12.20

File hashes

Hashes for seahash-0.2.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 7a04741e9c918617346dcf2f2ec88b99757b1b658a64969581c95f8fa720c897
MD5 4eede6e6ceb5ba9be0e7cbd3180d5fc3
BLAKE2b-256 7c79de27a7848d2e44b9edab4507ae3489067221f7496e5fdbabbdb6777382ea

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for seahash-0.2.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d27c3b362a2b693d36f753ba549ed564a345de698fc9b4c77961e71c85ec91a9
MD5 a6a45c109cbc15266482be37565bd237
BLAKE2b-256 4d03434e9ae1d423dd9c0b4774aea36e78c1fd4d9504999cb743754e593d38ce

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for seahash-0.2.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 996181a7933b06dc420d8d32f3266ed16d95074836fccf0555c752bda4beed95
MD5 a796902d1bfa1569e7755a0bae5f3fe5
BLAKE2b-256 bd094823171396ab3333da686d6c5024cae1b0618615ebe95245db91a540b281

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-cp37-none-win_amd64.whl.

File metadata

  • Download URL: seahash-0.2.0-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 129.1 kB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.12.20

File hashes

Hashes for seahash-0.2.0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 c260db6aac3eb46cd75c99fdfbfe0abf9fa9768727e74be4236e8da4ae19b0fe
MD5 7a75d9958a20801ba4135a491f80d4a9
BLAKE2b-256 45fe7273c87671a93375c59e5e1d1c8f6b59262873a7bd74febea4537d0b5269

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for seahash-0.2.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2ac04a25d2513ce0a0955f4e08ba788386598af853b7113e78942dc8ff820146
MD5 32a5bc1a81cfe41063d5493e829ad79f
BLAKE2b-256 d59c92d4c05444d5010c1994af84d1544596b821ad0a52aee7a77ae1a150b94c

See more details on using hashes here.

File details

Details for the file seahash-0.2.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for seahash-0.2.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ed9f8fe1b539986fe0a55a27516c2bc9f9fd11b47c3c68f8d084a6d902ae4d83
MD5 2750ae4e38862069456fa230788c6f08
BLAKE2b-256 8f4fb727d94edc29cb57e0981a081ea9f722dbf1951839495b86e103e2ee11b2

See more details on using hashes here.

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