Registry / data / staticmap

staticmap

JSON →
library0.5.7pypypi✓ verified 34d ago

A small, Python-based library for creating static map images with lines and markers. Current version 0.5.7 (last released March 2020). Development appears to be in maintenance mode with no recent releases.

data
Install & Compatibility
Where this runs
tested against v0.5.7 · 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.702s · 40.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.8s · import 0.610s · 41MB
39MB installed
● package 39MB
Code
Verified usage

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

Correct import path

from staticmap import StaticMap
from staticmap import CircleMarker
from staticmap import Line

Creates a map with a marker and a line, saved to map.png.

from staticmap import StaticMap, CircleMarker, Line m = StaticMap(600, 400, url_template='https://tile.openstreetmap.org/{z}/{x}/{y}.png') marker = CircleMarker((13.405, 52.52), 'blue', 12) m.add_marker(marker) line = Line([(13.4, 52.5), (13.41, 52.53)], 'red', 2) m.add_line(line) image = m.render() image.save('map.png')
Debug
Known footguns
gotchaCoordinates are (lon, lat) order, not (lat, lon). Many users incorrectly pass (lat, lon) leading to markers in wrong locations.
gotchaTile fetching requires an internet connection. Offline usage is not supported natively.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
26 hits · last 30 days
petalbot
8
gptbot
4
bytedance
4
ahrefsbot
3
mj12bot
2
claudebot
2
script
1
bingbot
1
Resources