Skip to main content

kdtree-rs

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

Install

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:

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)

Metadata

Release files for kdtree-rs 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kdtree-rs 0.3.1
File Size Uploaded
kdtree_rs-0.3.1.tar.gz 37.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for kdtree-rs 0.3.1
File
kdtree_rs-0.3.1-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details
kdtree_rs-0.3.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Details
kdtree_rs-0.3.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 Details
kdtree_rs-0.3.1-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details
kdtree_rs-0.3.1-cp314-cp314t-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 Details
kdtree_rs-0.3.1-cp313-cp313t-win_amd64.whl CPython 3.13 CPython 3.13 free-threading Windows x86-64 Details
kdtree_rs-0.3.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 free-threading Linux glibc 2.17+ x86-64 Details
kdtree_rs-0.3.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.13 CPython 3.13 free-threading Linux glibc 2.17+ ARM64 Details
kdtree_rs-0.3.1-cp313-cp313t-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 free-threading macOS 11.0+ ARM64 Details
kdtree_rs-0.3.1-cp313-cp313t-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 free-threading macOS 10.12+ x86-64 Details

Total release size: 3.3 MB

Release files / kdtree_rs-0.3.1.tar.gz

Download URL kdtree_rs-0.3.1.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d77f7cc3a2bb490032ce610d3b9a9680ce1bc4de0cb9d6976be1db26025f7d55
BLAKE2b-256 checksum
How to use checksums
6e4abd796d0a82c33d21e21caed110e34996b985aa5bed29e7083b944b13bc5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kdtree_rs-0.3.1-cp314-cp314t-win_amd64.whl

Download URL kdtree_rs-0.3.1-cp314-cp314t-win_amd64.whl
Size 213.1 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
69dc2decb151e38388df4a1a4e43620ee87137f8a08dcc816ed95c25274c25c2
BLAKE2b-256 checksum
How to use checksums
4af77e81cd13bcb4e66fe6327aac6b64b944ea88891d3e42593ee5b23d383fc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kdtree_rs-0.3.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL kdtree_rs-0.3.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 385.7 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
663f32f41748aec2b71efb35075cb92b1f0998290a6c7eae3a02c73bc1e53cff
BLAKE2b-256 checksum
How to use checksums
7b49fde1720c2154e23af46600c3722ca95c854b9aaa88892c5527942b1dcd8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kdtree_rs-0.3.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL kdtree_rs-0.3.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 377.8 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
f0b611ee195119a382adb58531af4767035ea2414de9d3dbf4d1d4c54768f624
BLAKE2b-256 checksum
How to use checksums
1b5c7631caf47d90add8ac4e458b53904977e6982a9470020c4da818afd370ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kdtree_rs-0.3.1-cp314-cp314t-macosx_11_0_arm64.whl

Download URL kdtree_rs-0.3.1-cp314-cp314t-macosx_11_0_arm64.whl
Size 331.1 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8bbcfa6b4bd14a1282f6b089384c96c62d273eabbabee630ea9a3f3caf9c49cc
BLAKE2b-256 checksum
How to use checksums
8cfa34b4fe5bf9f66dcf20a600b93ad97fceb5ff69392cb73557ff3ec8b59c3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kdtree_rs-0.3.1-cp314-cp314t-macosx_10_12_x86_64.whl

Download URL kdtree_rs-0.3.1-cp314-cp314t-macosx_10_12_x86_64.whl
Size 337.2 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
91b51be02df41e5ba4176dd5b66b135bdb92b8a2568d63e3497dd1d18d9e52a0
BLAKE2b-256 checksum
How to use checksums
277920afeb7df3363e04b78eb8877a2efd2bb773a9081238ed30423e03fdf8fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kdtree_rs-0.3.1-cp313-cp313t-win_amd64.whl

Download URL kdtree_rs-0.3.1-cp313-cp313t-win_amd64.whl
Size 213.0 kB
Tags CPython 3.13 CPython 3.13 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
0ee111e0678bddf6672b6466c1905ae1a1c222ceff4d0edfbf295db6ff307635
BLAKE2b-256 checksum
How to use checksums
49ccbbfdf9af181e60fb15429e99e1620f4d8dd0c213d8ab3d9ec3c36b8ec2ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kdtree_rs-0.3.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL kdtree_rs-0.3.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 386.0 kB
Tags CPython 3.13 CPython 3.13 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
8e0a176c16309fe03a69c27b33581fb930857fe94878e4e835b03a3527629822
BLAKE2b-256 checksum
How to use checksums
52364a1302949f9c65c9f12dc149c96140b5ac39fde6e07a3b859ee0be4e9980
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kdtree_rs-0.3.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL kdtree_rs-0.3.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 377.9 kB
Tags CPython 3.13 CPython 3.13 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
b0e0d64037fb9fdcd45fe707b01f74649705e49d29bfdd6e041c3aca4a20f7dc
BLAKE2b-256 checksum
How to use checksums
51c4424b64a5f8f2b77df7ebdf83383b5db0d167d9b59335c48e6687937d5ae3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kdtree_rs-0.3.1-cp313-cp313t-macosx_11_0_arm64.whl

Download URL kdtree_rs-0.3.1-cp313-cp313t-macosx_11_0_arm64.whl
Size 331.0 kB
Tags CPython 3.13 CPython 3.13 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
82cb43d650996e5ea5ca7d93b46e80615bf3bb9038b69de6aa094b6dd67943a3
BLAKE2b-256 checksum
How to use checksums
7bd9dfdd4015b0e892352e17dbdc13623facc485c1d54516cbcefc0d89a97614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kdtree_rs-0.3.1-cp313-cp313t-macosx_10_12_x86_64.whl

Download URL kdtree_rs-0.3.1-cp313-cp313t-macosx_10_12_x86_64.whl
Size 336.9 kB
Tags CPython 3.13 CPython 3.13 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
500d360f9e972aa3bce0d0753a0d2b543edd7bb4078e86dfdeb221a87621c4e2
BLAKE2b-256 checksum
How to use checksums
72436daf52007da6dd98e20b5a50abf5e5cd214bbb2ce59d62075ee7b8d730e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.3.1 This release

11 release files

0.3.0

11 release files

0.2.0

11 release files

0.1.0

11 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page