Skip to main content

High-level bindings to the Valhalla C++ library

Project description

Valhalla for Python

Master Push

This spin-off project simply offers packaged Python bindings to the fantastic Valhalla project.

Over time we will very likely deviate from Valhalla's own Python binding code to allow usages outside the scope of the core project. Refer to our release pattern to learn more about the versioning of this project.

Installation

We distribute all 4 currently developed CPython versions as binary wheels for Win64, MacOS (Intel) and x86_64 Linux distributions with glibc>=2.24 (most modern systems, see PEP 600). We do not offer a source distribution on PyPI. Please contact us on enquiry@gis-ops.com if you need support building the bindings for your platform/distribution.

pip install pyvalhalla

Note, to install from PyPI as a Linux user you must have pip version 20.3 or greater installed.

Usage

Find a more extended notebook in ./examples, e.g. how to use the actor.

Before using the Python bindings you need to have access to a routable Valhalla graph. Either install Valhalla from source and built the graph from OSM compatible data or use our Valhalla docker image for a painless experience.

Once you have created a graph locally, you can use it like this:

from valhalla import Actor, get_config

# generate configuration
config = get_config(tile_extract='path/to/extract.tar', verbose=True)

# instantiate Actor to load graph and call actions
actor = Actor(config)
route = actor.route({"locations": [...]})

License

pyvalhalla is licensed with GPLv2, see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pyvalhalla-3.0.0-cp310-cp310-win_amd64.whl (2.9 MB view details)

Uploaded CPython 3.10 Windows x86-64

pyvalhalla-3.0.0-cp310-cp310-manylinux_2_24_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.24+ x86-64

pyvalhalla-3.0.0-cp310-cp310-macosx_10_9_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pyvalhalla-3.0.0-cp39-cp39-win_amd64.whl (2.9 MB view details)

Uploaded CPython 3.9 Windows x86-64

pyvalhalla-3.0.0-cp39-cp39-manylinux_2_24_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.24+ x86-64

pyvalhalla-3.0.0-cp39-cp39-macosx_10_9_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

pyvalhalla-3.0.0-cp38-cp38-win_amd64.whl (2.9 MB view details)

Uploaded CPython 3.8 Windows x86-64

pyvalhalla-3.0.0-cp38-cp38-manylinux_2_24_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.24+ x86-64

pyvalhalla-3.0.0-cp38-cp38-macosx_10_9_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

pyvalhalla-3.0.0-cp37-cp37m-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.7m Windows x86-64

pyvalhalla-3.0.0-cp37-cp37m-manylinux_2_24_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.24+ x86-64

pyvalhalla-3.0.0-cp37-cp37m-macosx_10_9_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file pyvalhalla-3.0.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyvalhalla-3.0.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyvalhalla-3.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 706b8111f2678b9a65e399b48d851e4864485b1a5e93ca1f144c899aeb70e473
MD5 88f1a5cfa14253a5be51b97f6af21160
BLAKE2b-256 c69b80dbb7893c6e94a6e81bed348be522bc0fd3ace5c5b4c5d70f660cc6fa79

See more details on using hashes here.

File details

Details for the file pyvalhalla-3.0.0-cp310-cp310-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pyvalhalla-3.0.0-cp310-cp310-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 3.10, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyvalhalla-3.0.0-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 20b3828bfa1f52f630595c1e83d70a22fdeca9219180455772e64b56453acb8d
MD5 9e0796bd4aeedf0c8886d0d8866064c6
BLAKE2b-256 2d4b1f7fc4a0c2b4754f54119694bb7aac0b299d817806889eb40d624510a4b1

See more details on using hashes here.

File details

Details for the file pyvalhalla-3.0.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: pyvalhalla-3.0.0-cp310-cp310-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.10, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyvalhalla-3.0.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 29102beed822f3b460856144a44fc3618d594d6349445cf0817a0835d442a0a9
MD5 aa4cd7b0de34d6040442fcfcc77a73d4
BLAKE2b-256 8f642e7dcf09b3ba64bcbd372c12b0371a16fea354d38f03efee2c3ede82e82e

See more details on using hashes here.

File details

Details for the file pyvalhalla-3.0.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pyvalhalla-3.0.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyvalhalla-3.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 945c8b21cdf1fccd691fad16d78bd37f2ed1febfb479da975b918fe197c61877
MD5 2b8f79d91df57f80784842662c46a3e6
BLAKE2b-256 d6343ef56c57a1c384b444339a0800a01a57b50eb7cf09cf79a80fb85cb1c491

See more details on using hashes here.

File details

Details for the file pyvalhalla-3.0.0-cp39-cp39-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pyvalhalla-3.0.0-cp39-cp39-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 3.9, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyvalhalla-3.0.0-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 e8545e23da9b85f210f9ca15463caec3352156c13b5ecdf06d07b70bbc06fa44
MD5 f93b7b8bc4b1b84098824641c1a6001c
BLAKE2b-256 d74d9c82e8e1a512becb5886107f83b1698feb8d4ea945d46741e569e9a3ab6e

See more details on using hashes here.

File details

Details for the file pyvalhalla-3.0.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: pyvalhalla-3.0.0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyvalhalla-3.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4e8284ba702d4d2da0414e623656c9256239eb49077ef220609761f044ea06af
MD5 7edc8250b87aba3f4984e730a043f69f
BLAKE2b-256 c194a876fc0ccbc82801e1dc235680c05cc8b8b4a8f39f473ce476ae60271527

See more details on using hashes here.

File details

Details for the file pyvalhalla-3.0.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyvalhalla-3.0.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyvalhalla-3.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0fe290124705392997400962485347119b915e58f6560e3956ac8cac5ef49a08
MD5 9c6f7b29068e9b8a2c4b8bc010ca451f
BLAKE2b-256 6fa75212a13d7dafb5950cf6961c2cbc47fc90f13809b5276781fc0c74423a52

See more details on using hashes here.

File details

Details for the file pyvalhalla-3.0.0-cp38-cp38-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pyvalhalla-3.0.0-cp38-cp38-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 3.8, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyvalhalla-3.0.0-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 c5ab03f9547f0afe80d4e69c3788d6acc4a974517b138737cd52bdb26d1d033d
MD5 9aee83f1a820993440f55712f3cf651a
BLAKE2b-256 bf08db907dbf19ebbc51f0f626ae3963287b7f50a12d9cc2e34ec4b4e6d0dcb6

See more details on using hashes here.

File details

Details for the file pyvalhalla-3.0.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: pyvalhalla-3.0.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyvalhalla-3.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5375b5822ea8f5ebc991dfec6c7870462b9833492f6490fb071583a2293ef6e5
MD5 0e59b520cb70eb598efb152287424e28
BLAKE2b-256 dbc2fb5298c0045026b34a6a5dea7d5b1e2890b088cd709e8fa78c2765291aa9

See more details on using hashes here.

File details

Details for the file pyvalhalla-3.0.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pyvalhalla-3.0.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyvalhalla-3.0.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f92ddbbfa89f3e2be466e863e7fb69067ba4ad4979dd1861554050e45cb98d57
MD5 e35b76c26ac713f2303389d7ce97791a
BLAKE2b-256 f89aeb992f4880a16cd657477be80575ffea4c3d39f9e5b515d1bca0d74ede8f

See more details on using hashes here.

File details

Details for the file pyvalhalla-3.0.0-cp37-cp37m-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pyvalhalla-3.0.0-cp37-cp37m-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyvalhalla-3.0.0-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 42038f5019d7dba95922b4c52acbb7591d7aa8ef25817179b588f0f4bf292e9c
MD5 71719a7dd27c1a075bc50eff4ab7ba39
BLAKE2b-256 c1e4108d0caa620c1f740bf13af54a3b1e7c681efda9e7ca873c02f93178ec0d

See more details on using hashes here.

File details

Details for the file pyvalhalla-3.0.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: pyvalhalla-3.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyvalhalla-3.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 22cce7a3eacad9bd8231d7b77671fadc72e540a049a327a15b4ce5a9450a8a23
MD5 853d3a33ce19a83b823041a71c52d521
BLAKE2b-256 f304476b858d2633128751c864d631e2a60c28fa70fda2c1538f7a116f0b11c7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page