MCPcopy Index your code
hub / github.com/Toblerity/rtree

github.com/Toblerity/rtree @1.4.1b3

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.4.1b3 ↗ · + Follow
291 symbols 686 edges 16 files 81 documented · 28%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Rtree: Spatial indexing for Python

Test PyPI version

Rtree is a ctypes Python wrapper of libspatialindex that provides a number of advanced spatial indexing features for the spatially curious Python user. These features include:

  • Nearest neighbor search
  • Intersection search
  • Multi-dimensional indexes
  • Clustered indexes (store Python pickles directly with index entries)
  • Bulk loading
  • Deletion
  • Disk serialization
  • Custom storage implementation (to implement spatial indexing in ZODB, for example)

Wheels are available for most major platforms, and rtree with bundled libspatialindex can be installed via pip:

pip install rtree

See changes for all versions.

Core symbols most depended-on inside this repo

insert
called by 30
rtree/index.py
intersection
called by 30
rtree/index.py
get_coordinate_pointers
called by 19
rtree/index.py
nearest
called by 15
rtree/index.py
intersection_v
called by 7
rtree/index.py
nearest_v
called by 7
rtree/index.py
as_dict
called by 7
rtree/index.py
_get_time_doubles
called by 5
rtree/index.py

Shape

Method 225
Class 40
Function 24
Route 2

Languages

Python100%

Modules by API surface

rtree/index.py167 symbols
tests/test_index.py83 symbols
tests/test_tpr.py12 symbols
rtree/core.py7 symbols
setup.py6 symbols
scripts/visualize.py5 symbols
benchmarks/benchmarks.py3 symbols
tests/test_finder.py2 symbols
tests/conftest.py2 symbols
rtree/finder.py2 symbols
scripts/repair_wheel.py1 symbols
rtree/exceptions.py1 symbols

For agents

$ claude mcp add rtree \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page