semvec/pypi-packages huggingface dataset:
python-simhash 0.1.0
SimHash algorithm implementation in Rust for Python
License: MIT
Requires Python: <4.0,>=3.10

# Python Simhash

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/python-simhash?style=flat-square)
![PyPI - Version](https://img.shields.io/pypi/v/python-simhash?style=flat-square)


## 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

```bash
pip install python-simhash
```

### Basic Usage

```python
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