Osmread
lastmod 2026-11-10created 2019-11-222 edits
osmread is a simple Python library for reading OpenStreetMap XML (.osm) and PBF (.osm.pbf) data files. It parses files sequentially and yields Node, Way, and Relation objects one at a time from a generator, so even large files can be processed without loading them entirely into memory. It has no writing or editing features and focuses on reading only; it is used in GIS analysis and map data extraction scripts.
Simple library for reading OpenStreetMap XML and PBF data files.