Development Status
- 5 - Production/Stable
Intended Audience
- Developers
Topic
- Scientific/Engineering :: GIS
License
- OSI Approved :: BSD License
Programming Language
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
- Python :: Free Threading :: 2 - Beta
- Python :: Implementation :: CPython
- C++
Typing
- Typed
This library provides Python bindings for the Libosmium C++ library, a library for working with OpenStreetMap data in a fast and flexible manner.
Installation
pyosmium can be installed with pip:
pip install osmium
The Pypi source package already comes bundled with a matching version of libosmium, protozero and pybind11. Pyosmium additionally depends on expat, libz and libbz2. You need to install development packages for these libraries. On Debian/Ubuntu do:
sudo apt-get install build-essential cmake libexpat1-dev zlib1g-dev libbz2-dev
Python >= 3.8 is supported. Pypy is known not to work.
Documentation
The documentation for the latest release is available at osmcode.org.
If you find bugs or have feature requests, please report those in the Github issue tracker. For general questions about using pyosmium you can contanct the OSM forum.
Examples
The package contains an example directory with small examples on how to use the library. They are mostly ports of the examples in Libosmium and osmium-contrib.
Also check out the Cookbook section in the documentation.
Fineprint
Pyosmium is available under the BSD 2-Clause License. See LICENSE.TXT.
The source code can be found on GitHub.