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

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.6
File Size Uploaded Provenance Actions
pywaze-1.2.6.tar.gz 163.9 kB With provenance Details for pywaze-1.2.6.tar.gz

Built distribution (wheel)

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

Total release size: 171.2 kB

Release files / pywaze-1.2.6.tar.gz

Download URL pywaze-1.2.6.tar.gz
Size 163.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d2f58e6de5f5dbfda7645a59398e4e7031f1c73244f1a6a4abdd69cba5588bb4
BLAKE2b-256 checksum
How to use checksums
452bd6648e871052232bacf5aea5496cc0ce3bc6d863ca33f890eed06a15593a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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 Nov 26, 2026.

Transparency log

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

Download URL pywaze-1.2.6-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d96a520e9f097b67ce7bafb661ad52969c298c79551389c81f6c2c76aea6aac0
BLAKE2b-256 checksum
How to use checksums
43f0c841904dbc5306a086f409ea815daf212cc3aa0ea83ce1f6b940012edc98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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 Nov 26, 2026.

Transparency log

Security for pywaze 1.2.6

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.6.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 Nov 26, 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