Comparison
haversine vs pygeodesy vs pyproj
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Calculate the distance between 2 points on Earth.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install haversinePure Python geodesy tools
Actively maintained. Last release 3 weeks ago, commits in 16 of the last 26 weeks. A safe choice.
$
pip install pygeodesyPython interface to PROJ (cartographic projections and coordinate transformations library)
Actively maintained. Last release 3 months ago, commits in 15 of the last 26 weeks. A safe choice.
$
pip install pyprojIn short
- haversine is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- pyproj is the most used: 26.1M downloads a month, 9.7× more than haversine.
- Maintenance is comparable: pygeodesy 82, pyproj 81 on Pythie’s Index.
- pygeodesy is growing fastest: downloads +49% over the last month.
- Safe default for a new project: pyproj.