Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

basemaplibre

Latest version: v0.1.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: RaczeQ
0 Stars
0 Forks
1 Versions
Python Repo language

Scan summary

basemaplibre was last scanned on 23 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 23 Nov 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 23 Nov 2026 No rules fired

No rules fired in 0.1.0

Findings

Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

basemaplibre

Basemaps for matplotlib and GeoPandas from MapLibre styles, with the parameters of contextily's add_basemap.

contextily downloads raster tiles in Web Mercator, merges them and warps them to the CRS of your data. basemaplibre renders the style (vector tiles, labels, icons) with ml2drender for the extent of the axes, at their resolution and directly in their CRS, so labels stay upright and sharp. No GPU, no browser, no system libraries.

Documentation · Style gallery · API reference

Installation

pip install basemaplibre

Usage

import geopandas
import basemaplibre as bml

gdf = geopandas.read_file("districts.gpkg")
ax = gdf.plot(alpha=0.5, edgecolor="k")
bml.add_basemap(ax, crs=gdf.crs, source="OpenFreeMap.Positron")

labels="above" draws the map under your data and its labels above it:

add_basemap(ax, ...) Draws a style under the data of ax.
add_attribution(ax, text, ...) Writes text in the bottom right corner of ax, wrapped to its width, on a translucent white box as MapLibre does.
set_cache_dir(path) Keeps downloads in path, reused by later sessions that set it again, instead of a temporary directory removed at exit.
STYLES Named styles that load without an API key, for source.

Differences from contextily

  • source is a MapLibre style: a dict, the URL of its JSON, a name of STYLES (default OpenFreeMap.Liberty) or a local .json file. Other sources (an xyzservices provider, a URL of raster tiles, a raster file) are left to contextily.add_basemap, with a UserWarning. contextily is not a dependency: install it for those.
  • The style is drawn directly in crs (anything pyproj.CRS.from_user_input reads) if ml2drender supports the projection, so resampling is ignored. Axes that stretch latitudes, as GeoPandas does in EPSG:4326, get the projection they show, so labels keep their shape.
  • zoom is contextily's zoom of 256-pixel tiles (the style is evaluated at MapLibre zoom zoom - 1); "auto" draws the style at its size on a web page.
  • The basemap is rendered when it is added, and again when the axes are drawn with other limits, at another size or at another dpi: it stays sharp and up to date after zooming, panning, fig.tight_layout() or fig.savefig(dpi=300). Rendering may download tiles, and its errors are raised where the figure is drawn. The image has the dpi the figure is drawn at, but 200 pixels to the inch at least.
  • New: labels=False drops the labels and icons, labels="only" draws only them, above the data, and labels="above" draws the map under the data and its labels above it; pixel_ratio fixes the resolution; load replaces fetching with HTTPX. OpenHistoricalMap's styles are drawn as of today, as on its website.
  • Downloads are cached on disk as in contextily (set_cache_dir keeps them across sessions), but for the style and its TileJSON, which name the current tiles. Failed requests are tried twice more.

Styles

STYLES has maps of the world (OpenFreeMap, VersaTiles, CARTO, Maptoolkit, OpenHistoricalMap, MapLibre) and of national mapping agencies (basemap.de, swisstopo, IGN, PDOK, GSI), terrain (Mapterhorn) and imagery (VersaTiles, EOX, USGS, GSI, PDOK, IGN). The gallery shows each of them, with the coverage and terms of their services: check the terms before heavy use.

Mapterhorn.Hillshade is transparent, to shade another basemap (here, under its labels):

bml.add_basemap(ax, source="OpenFreeMap.Positron", labels="above")
bml.add_basemap(ax, source="Mapterhorn.Hillshade")

Development

uv sync                # install
uv run pre-commit install --hook-type pre-commit --hook-type commit-msg
uv run tox             # tests
uv run tox -e docs     # execute the notebooks, draw the gallery, build the docs to site/
uv run zensical serve  # preview them
uv run python scripts/readme.py  # draw the images of the README

The notebooks in examples/ are kept without outputs: they are executed when the docs are built, on release.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases basemaplibre

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229