imposm.parser
is a Python library that parses OpenStreetMap data in XML and PBF formats.
It has a simple API and it is fast and easy to use. It also works across multiple CPU/cores for extra speed.
It is developed and supported by Omniscale and released under the Apache Software License 2.0.
This version is modified to expose more attributes for analysis purposes by Martijn van Exel. PBF support only for now.
See https://github.com/snikhil0/ransm/blob/master/ransm/parse.py
Source code and issue tracker are available at https://github.com/mvexel/imposm.parser