sandbox-core · Python¶
The Python binding of the sandbox-core packaging-research kernel — a PyO3
abi3 wheel exposing geometry (BBox, TileId), summary Stats, and small
buffer/packing helpers.
This site is generated with mkdocs-material + mkdocstrings: the API
reference is pulled directly from the compiled module's docstrings (which come
from the /// doc comments in the Rust source), so it always matches the
shipped wheel.
Install¶
uv add sandbox-core # or: pip install sandbox-core
Quick start¶
import sandbox_core as sc
print(sc.greet("world"))
t = sc.TileId.from_quadkey("213")
print(t.quadkey(), t.bbox().area())
s = sc.stats([1.0, 2.0, 3.0])
print(s.count, s.mean)
Browse the API by symbol in the sidebar: Functions, BBox, TileId, Stats.