Metadata-Version: 2.4
Name: kdtree-rs
Version: 0.1.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Dist: numpy>=2.4
Summary: A minimal, high-performance KDTree for free-threaded CPython
Author-email: FUJISHIGE TEMMA <tenma.x0@gmail.com>
License-Expression: MIT OR Apache-2.0
Requires-Python: >=3.13
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Issues, https://github.com/FujishigeTemma/kdtree-rs/issues
Project-URL: Repository, https://github.com/FujishigeTemma/kdtree-rs

# kdtree-rs

A minimal, high-performance KDTree for free-threaded CPython.

## Install

```bash
pip install kdtree-rs
# or
uv add kdtree-rs
```

Requires Python 3.13+ with free-threaded build (`cp313t` / `cp314t`).

## Usage

The PyPI distribution `kdtree-rs` is imported as `kdtree`:

```python
import numpy as np

from kdtree import KDTree

data = np.array([[0.0, 0.0], [1.0, 0.0], [3.0, 0.0]])
tree = KDTree(data, leafsize=32)

distances, indices = tree.query(np.array([[0.2, 0.0], [2.8, 0.0]]), k=2)
```

