Skip to main content

SimHash algorithm implementation in Rust for Python

Project description

Python Simhash

PyPI - Python Version PyPI - Version

Features

  • Written in Rust: The underlying library and bindings are written in Rust, which makes it fast and memory-efficient.
  • Safe: The Rust implementation is memory-safe and thread-safe.

Quick Start

Installation

pip install python-simhash

Basic Usage

from simhash import simhash, hamming_distance


fingerprint1 = simhash("hello world this is a message saying some things".split(), hasher="xxh3")
fingerprint2 = simhash("hello world this is a message saying some other things".split(), hasher="xxh3")

print(hamming_distance(fingerprint1, fingerprint2))

License

This project is licensed under MIT License.

Support & Feedback

If you encounter any issues or have feedback, please open an issue. We'd love to hear from you!

Made with ❤️ by Emergent Methods

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_simhash-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl (368.8 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.34+ x86-64

File details

Details for the file python_simhash-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for python_simhash-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e49e2974c28d56bb1230db264125573fcf3dc1944f3b5f7fb289f95fa8c0efc9
MD5 1ea5ea23cceaddc258f1ec5a2b736b08
BLAKE2b-256 7d43ecaab3ddbb4629aedaf0fa2d02c06433c83b67c47b1a71096682721ee204

See more details on using hashes here.

Supported by

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