{"library":"pykdtree","title":"pykdtree","description":"A fast kd-tree implementation in Cython with OpenMP-enabled parallel queries. Current version 1.4.3, supports Python >=3.9 and NumPy >=1.25. Release cadence is irregular, with several maintenance releases addressing bugs and build compatibility.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pykdtree","pip install pykdtree --no-binary pykdtree"],"cli":null},"imports":["from pykdtree.kdtree import KDTree"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import numpy as np\nfrom pykdtree.kdtree import KDTree\ndata = np.random.randn(100, 3)\ntree = KDTree(data)\nquery = np.random.randn(5, 3)\ndists, idx = tree.query(query, k=4)\nprint(dists, idx)","lang":"python","description":"Create a KDTree from 100 random 3D points and query nearest 4 neighbors for 5 new points.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}