Skip to main content
Release file added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

Haversine Build Status

Calculate the distance (in km or in miles) between two points on Earth, located by their latitude and longitude.

Example: distance between Lyon and Paris

from haversine import haversine

lyon = (45.7597, 4.8422) # (lat, lon)
paris = (48.8567, 2.3508)

haversine(lyon, paris)
# 392.21671780659625  # in kilometers

haversine(lyon, paris, miles=True)
# 243.71209416020253  # in miles

haversine(lyon, paris, nautical_miles=True)
# 211.7801622966963  # in nautical miles

Installation

$ pip install haversine

Contributing

Clone the project

Install pipenv.

Run pipenv install

Launch test with pipenv run pytest

Metadata

Release files for haversine 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for haversine 1.0.2
File Size Uploaded Provenance Actions
haversine-1.0.2.tar.gz 2.2 kB File added late: Without provenance Details for haversine-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for haversine 1.0.2
File Interpreter ABI Platform Actions
haversine-1.0.2-py2-none-any.whl Python 2 none any Details for haversine-1.0.2-py2-none-any.whl

Total release size: 5.5 kB

Release files / haversine-1.0.2.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL haversine-1.0.2.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
63b9ceb3d2992314fe74948f57afd7d0fb623663ca32f2973565156aa34b9c52
BLAKE2b-256 checksum
How to use checksums
921cde387b6399070587970fe2007f8b1064d7f948cbb78c07fb61c65cbff560
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.13

Release files / haversine-1.0.2-py2-none-any.whl

Download URL haversine-1.0.2-py2-none-any.whl
Size 3.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
d29739072c8f8b98aa8c3c13a35520f212bbdf4f17927d4a6cc878d559698fbe
BLAKE2b-256 checksum
How to use checksums
93178ec6e973b1b89fe70a0583e1dcf56a64da746107e74f7727d0bfc612e7c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.13

Security for haversine 1.0.2

Upload timing

Release file added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page