Registry / http-networking / overpy

overpy

JSON →
library0.7pypypi✓ verified 34d ago

Overpy is a Python wrapper for the OpenStreetMap Overpass API, allowing querying of OSM data with Overpass QL. Current version is 0.7, requiring Python >=3.6. Release cadence is low; the library is in maintenance mode.

http-networkingdata
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

from overpy import Overpass
from overpy import OverpassException

Initialize Overpass API, run a query, and iterate over results.

import overpy api = overpy.Overpass() result = api.query(""" node(50.745,7.17,50.75,7.18)["amenity"="restaurant"]; out body; """) for node in result.nodes: print(f"Node ID: {node.id}, Tags: {node.tags}")
Debug
Known footguns
gotchaThe Overpass API has rate limits and usage policies. Overpy does not handle retries; you must handle HTTP errors and API errors yourself.
gotchaThe default user agent is old and may be blocked. Some Overpass instances (e.g., overpass-api.de) require a custom user agent.
deprecatedThe old 'Overpass(url="http://overpass-api.de/api/interpreter")' pattern without explicit user agent is discouraged.
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
0 hits · last 30 days

No traffic data recorded yet.

Resources