Haversine function using pybind11
Project description
pyHaversine
An simple project built with pybind11. This requires Python 3.6+; for older versions of Python, check the commit history.
Installation
- clone this repository
pip install ./pyhaversine
CI Examples
There are examples for CI in .github/workflows
. A simple way to produces
binary "wheels" for all platforms is illustrated in the "wheels.yml" file,
using cibuildwheel
. You can also see a basic recipe for building and
testing in pip.yml
, and conda.yml
has an example of a conda recipe build.
Building the documentation (no available)
Documentation for the example project is generated using Sphinx. Sphinx has the ability to automatically inspect the signatures and documentation strings in the extension module to generate beautiful documentation in a variety formats. The following command generates HTML-based reference documentation; for other formats please refer to the Sphinx manual:
cd pyhaversine/docs
make html
License
pybind11 is provided under a BSD-style license that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.
Test call
import pyhaversine
pyhaversine.haversine((1.0, 2.0), (3.0, 4.0))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyhaversine-0.0.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1931fbc6c5ef932a75a637ed8cda3050d7a64759973ef79e7b464e395450da0 |
|
MD5 | aa214cc1485721739ee7fa1af8fd1648 |
|
BLAKE2b-256 | aa0aa7d45de090d8775ad244db0b7b9bf3a27e241f305a6141ba341304044a85 |