Skip to main content

Python client SDK for the Geotab Altitude APIs

Project description

altitude-sdk

altitude-sdk is a lightweight Python client for the Geotab Altitude APIs. It is designed to make getting started quick and easy, handling authentication, async job submission and polling, and result pagination so you can focus on the data rather than the plumbing.

Requires Python 3.10+.

Installation

pip install altitude-sdk

Usage

import time

from altitude_sdk import AltitudeClient

# Authenticate with your API key; sent as `Authorization: Bearer <api_key>`.
client = AltitudeClient(api_key="your-api-key")

params = {
    "zones": [{"code": "32007", "iso_3166_2": "US-NV", "type": "County"}],
    "isMetric": False,
    "dateFrom": "2025-03-05",
    "dateTo" : "2025-03-01"
}

# All-in-one: submit → poll to completion → paginate → list of results
rows = client.stop_analytics.rda(params).all()

# Or step-by-step for more control:
wf = client.stop_analytics.rda(params)
wf.run()                                    # submit the job (non-blocking); sets wf.id
while wf.status()["status"] != "DONE":      # poll until the job finishes
    time.sleep(5)
rows = wf.results()                         # fetch the results once DONE

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

altitude_sdk-1.0.0.tar.gz (95.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

altitude_sdk-1.0.0-py3-none-any.whl (57.6 kB view details)

Uploaded Python 3

File details

Details for the file altitude_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: altitude_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 95.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for altitude_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 99828b01b0659a9c825ca690d2182f9ed72debb8cb46dc5b5dcb04d350ba8a38
MD5 fded83304a65427b9c2f5a55b53d3d35
BLAKE2b-256 bef13ba19840fc348ef53b231a271c161f8030a83abf431b37f3a6d5767d5ae5

See more details on using hashes here.

File details

Details for the file altitude_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: altitude_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 57.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for altitude_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08135bf583ee19628f48d9d24a8dc1dc7427639d2c4da7811d650d8c398aea3b
MD5 63617dbb5ddfe2e01d12430fc83d0253
BLAKE2b-256 75c7a2d220a3082f3ceb2ea0d5d2d8f95ca22547fb00d905bf28fac80a6ea6d7

See more details on using hashes here.

Supported by

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