Skip to main content

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)

Every request is made with a fresh, browser-impersonating curl_cffi session that is closed as soon as the request finishes, so there is nothing long-lived to clean up. The asynchronous context manager and await client.close() are kept for backwards compatibility.

The client constructor argument (an injected httpx.AsyncClient) is deprecated and ignored: Waze rejects HTTPX's TLS fingerprint. Passing it emits a DeprecationWarning.

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.5

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

Source distribution (sdist)

Source distribution for pywaze 1.2.5
File Size Uploaded Provenance Actions
pywaze-1.2.5.tar.gz 162.9 kB With provenance Details for pywaze-1.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pywaze 1.2.5
File Interpreter ABI Platform Actions
pywaze-1.2.5-py3-none-any.whl Python 3 none any Details for pywaze-1.2.5-py3-none-any.whl

Total release size: 170.2 kB

Release files / pywaze-1.2.5.tar.gz

Download URL pywaze-1.2.5.tar.gz
Size 162.9 kB
Tags Source
SHA-256 checksum
How to use checksums
46244e2c79be81daa5accc7d2223295266fa5de87b680d2758973c442134c5fa
BLAKE2b-256 checksum
How to use checksums
1176653b79a72c3eca149e435ab2d2e855b68ca68e89309aefc0b70979b2752e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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 24, 2026.

Transparency log

Release files / pywaze-1.2.5-py3-none-any.whl

Download URL pywaze-1.2.5-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a11dd74c96efd62a55a11a0d163e477b94bed5ef229b7627ae8262d093e501e
BLAKE2b-256 checksum
How to use checksums
f68d264e210b7ee82de21e80d79ccdbded8e67089679cc53fb28dabf675a7c0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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 24, 2026.

Transparency log

Security for pywaze 1.2.5

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pywaze-1.2.5.tar.gz

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 24, 2026.

Transparency log

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