#tile-map #maplibre #mvt #map #mlt

bin+lib mlt-py

Python bindings for MapLibre Tile (MLT) format via PyO3

9 releases

Uses new Rust 2024

new 0.1.10 Apr 13, 2026
0.1.9 Apr 13, 2026
0.1.8 Mar 24, 2026
0.1.3 Feb 26, 2026

#591 in Geospatial

21 downloads per month

MIT/Apache

630KB
13K SLoC

mlt_py

Python bindings for the MapLibre Tile (MLT) format via PyO3.

import maplibre_tiles

data = open("tile.mlt", "rb").read()

# Structured decode with geo-referencing
layers = maplibre_tiles.decode_mlt(data, z=14, x=8297, y=10749, tms=True)
for layer in layers:
    print(f"Layer: {layer.name}, extent: {layer.extent}")
    for feat in layer.features[:3]:
        print(f"  id={feat.id}, type={feat.geometry_type}")
        print(f"  wkb={len(feat.wkb)} bytes, props={dict(feat.properties)}")

# Raw tile-local coordinates (no z/x/y needed)
layers = maplibre_tiles.decode_mlt(data)

# GeoJSON string output (tile-local coords)
geojson_str = maplibre_tiles.decode_mlt_to_geojson(data)

# Fast layer listing (no full decode)
names = maplibre_tiles.list_layers(data)

Dependencies

~23MB
~469K SLoC