Install & Compatibility
Where this runs
tested against v1.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
build_error
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 19.5s · import 0.000s · 406MB
383MB installed
● package 383MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
TileClient
✓ from localtileserver import TileClient
Correct import path.
get_leaflet_tile_layer
✓ from localtileserver import get_leaflet_tile_layer
✗ from localtileserver.tileserver import get_leaflet_tile_layer
Wrong submodule; the function is re-exported at top level.
Serve a local GeoTIFF as slippy map tiles and display in a Jupyter notebook with ipyleaflet.
from localtileserver import TileClient, get_leaflet_tile_layer
from ipyleaflet import Map
client = TileClient('path/to/raster.tif')
tile_layer = get_leaflet_tile_layer(client)
m = Map(center=(40.7128, -74.0060), zoom=10)
m.add_layer(tile_layer)
m
localtileserver --version
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'localtileserver'
The package is not installed or installed in a different environment.
fixRun `pip install localtileserver` in the correct Python environment.
ImportError: cannot import name 'get_leaflet_tile_layer' from 'localtileserver'
Trying to import a function that was renamed or moved. Prior to version 1.0.0, it was `get_leaflet_tile_layer`, now it's available at top level.
fixUse `from localtileserver import get_leaflet_tile_layer`.
Upgrade
Version history
1.0.0latest on PyPI · released Apr 24, 2026
Audit
Dependencies
No dependency data recorded yet.