SimHash algorithm implementation in Rust for Python
Project description
Python Simhash
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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_simhash-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: python_simhash-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 368.8 kB
- Tags: CPython 3.9+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e49e2974c28d56bb1230db264125573fcf3dc1944f3b5f7fb289f95fa8c0efc9
|
|
| MD5 |
1ea5ea23cceaddc258f1ec5a2b736b08
|
|
| BLAKE2b-256 |
7d43ecaab3ddbb4629aedaf0fa2d02c06433c83b67c47b1a71096682721ee204
|