xyzservices
Source of XYZ tiles providers
Decision gist · record as of 2026-08-14
Yes. xyzservices is a lightweight, zero-dependency utility that solves a real problem—centralizing tile provider metadata—for anyone building maps in Python. It's actively maintained, permissively licensed, and popular in the geospatial community. Install it if you're using tile-based maps and want a reliable reference for provider URLs and attribution.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later.
- Straightforward install with no runtime dependencies beyond Python itself.
- The package is actively maintained with a recent release (137 days ago) and lives in the geopandas organization on GitHub.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause license is permissive; you can use this in commercial and proprietary projects. Note that provider data sourced from leaflet-providers is separately licensed under BSD-2-Clause.
last release 2026-03-30 (137 days) · last repo commit 2026-08-02 · 229 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 10,172,772 downloads/mo, #1,475 on PyPI
Alternatives
Verify before relying
pip install xyzservices
import xyzservices.providers as xyz
url = xyz.CartoDB.Positron.url
attribution = xyz.CartoDB.Positron.attribution- Whether the embedded providers.json file is updated regularly and how users stay current with new tile services.
- Performance characteristics when working with the full provider inventory in memory.
- Whether token-based providers (like MapBox) require additional setup beyond setting the accessToken attribute.
What it is and what it does
xyzservices is a lightweight repository of XYZ tile service specifications—URLs, attribution strings, and metadata for raster basemap tile providers. It exposes this data through a Python API (a dict-like Bunch object) and as a compressed JSON file, making it easy to discover and configure tile sources for mapping applications.
The package is designed for developers building interactive or static maps who need to reference standard tile providers like CartoDB, OpenStreetMap, or MapBox. It handles the bookkeeping of provider URLs, required attribution, and token requirements, so you don't have to maintain your own list. Since it has no external runtime dependencies, it installs cleanly and integrates into any Python mapping workflow.
Use it for
- Populate a map application with a curated list of basemap tile options without hardcoding provider URLs.
- Look up correct attribution strings and usage terms for tile services in your mapping code.
- Configure token-based tile providers (e.g., MapBox) by setting credentials on provider objects.
- Export the embedded providers.json file for use in non-Python mapping tools or web applications.
- Build a tile provider selector UI by iterating over the available providers in a Jupyter notebook.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
xyzservices is a lightweight, zero-dependency utility that solves a real problem—centralizing tile provider metadata—for anyone building maps in Python. It's actively maintained, permissively licensed, and popular in the geospatial community. Install it if you're using tile-based maps and want a reliable reference for provider URLs and attribution.
Install
xyzservices on PyPI
Before you install
Straightforward install with no runtime dependencies beyond Python itself. The package is actively maintained with a recent release (137 days ago) and lives in the geopandas organization on GitHub.
Requires Python 3.8 or later.
License in practice
BSD-3-Clause license is permissive; you can use this in commercial and proprietary projects. Note that provider data sourced from leaflet-providers is separately licensed under BSD-2-Clause.
Quickstart
pip install xyzservices
import xyzservices.providers as xyz
url = xyz.CartoDB.Positron.url
attribution = xyz.CartoDB.Positron.attribution
Verify before relying
- Whether the embedded providers.json file is updated regularly and how users stay current with new tile services.
- Performance characteristics when working with the full provider inventory in memory.
- Whether token-based providers (like MapBox) require additional setup beyond setting the accessToken attribute.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 137 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 10,172,772 / month, #1,475 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.8 |
Evidence: xyzservices-2026.3.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “xyz tile providers”
- xyzservicesProvides a Python API and JSON database of XYZ tile service providers…
- mercantileMercantile converts between geographic coordinates, Web Mercator…
- contextilyContextily retrieves tile-based map imagery from the internet and…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also contextily · pmtiles · mercantile · pyGeoTile · rio-tiler · titiler-application · leafmap · titiler-core · mapbox · titiler-mosaic