pywaze
Asynchronous Waze client for calculating routes and travel times.
Based on WazeRouteCalculator
Installation
uv add pywaze
Usage
#!/usr/bin/env python3
import asyncio
from pywaze import route_calculator
async def get_time(start: str, end: str) -> float:
"""Return the travel time home."""
async with route_calculator.WazeRouteCalculator() as client:
results = await client.calc_routes(start, end)
first_route = results[0]
return first_route.duration
start = "50.00332659227126,8.262322651915843"
end = "50.08414976707619,8.247836017342934"
travel_time = asyncio.run(get_time(start, end))
print(travel_time)
Use the asynchronous context manager, or call await client.close() when finished.
The calculator closes its own HTTPX client and its impersonating session, but
leaves an injected httpx.AsyncClient open for its owner to close.
Address resolving base coordinates
When one or both endpoints are addresses, calc_routes() resolves them directly
via Waze's mobile autocomplete API.
You can provide custom base coordinates to bias address results near those coordinates:
await client.calc_routes(start, end, base_coords=(48.137154, 11.576124))
If base_coords is omitted and exactly one endpoint is already coordinates,
that coordinate endpoint is used automatically as base coordinates for
resolving the address.
Metadata
Release files for pywaze 1.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pywaze-1.2.3.tar.gz | 159.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pywaze-1.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 166.5 kB
Release files / pywaze-1.2.3.tar.gz
| Download URL | pywaze-1.2.3.tar.gz |
|---|---|
| Size | 159.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aff086c53a543974850ce87de66a65fd16e038b72c9e2c7935c7591ccbcd5d85
|
|
BLAKE2b-256 checksum How to use checksums |
ad75fb71a32d0d27e431416bd46b282e75241c3070e08b64129249579ce0f090
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency logRelease files / pywaze-1.2.3-py3-none-any.whl
| Download URL | pywaze-1.2.3-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
260b31c0d385b30e47def95a83df27fd46a4d654d45e222fc57a00f57e0813de
|
|
BLAKE2b-256 checksum How to use checksums |
b29734facb27eb28ac4f38dcfe3ab0d6c584d7bf912bc7b8586de45a99fa39fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency log