Registry / data / maplibre

maplibre

JSON →
library0.3.6pypypiunverified

Python bindings for MapLibre GL JS, enabling interactive web maps with vector tiles, custom styling, and geospatial data visualization. Current version 0.3.6 with frequent updates. Supports Python 3.9+.

pip install maplibre
INSTALL
IMPORT
SIG · MAPLIBRE
M
maplibre
datapythonv0.3.6
Install
3.6s avg
Import
Disk
33MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.6 · 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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 34.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.6s · import 0.000s · 34MB
33MB installed
● package 33MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MapLibre
from maplibre import MapLibre
import maplibre; maplibre.MapLibre
Direct class import is canonical; module attribute access may break in future.
Map
from maplibre import Map
from maplibre import MagicMap
No class named MagicMap; use Map.

Minimal example to display an interactive map with a basemap.

from maplibre import MapLibre from maplibre.basemaps import Basemap # Create a MapLibre instance and display a map m = MapLibre() m.add_basemap(Basemap.CartoDB_Positron) m.show()
Debug
Known issues
breakingThe Map class was renamed to MapLibre in v0.2.0; old code using `from maplibre import Map` will raise ImportError.
fix
Use `from maplibre import MapLibre` instead of `Map`.
affects: <0.2.0
gotchaMap does not automatically load in Jupyter notebooks without calling `m.show()` or using `%matplotlib notebook` magic. Without explicit display, the map appears as a blank output.
fix
Ensure you call `m.show()` at the end of your code.
affects: all
gotchaBasemap enumeration values may have changed between releases; hardcoding names like 'CartoDB_Positron' may break if the enum is renamed or removed. Always use the Basemap enum from `maplibre.basemaps`.
fix
Import and use `Basemap` from `maplibre.basemaps` instead of string literals.
affects: all
Upgrade
Version history
0.3.6latest on PyPI · released Dec 13, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
maplibre — pip install maplibre · libregistry