Skip to main content

gapwise

Official typed Python client for the unauthenticated Gapwise Public Campus API v1. It supports Python 3.11+ and defaults to https://api.gapwise.ca/v1.

# Not published to PyPI yet. From a checkout of this repository:
python -m pip install './sdk/python'
from gapwise import Gapwise

with Gapwise() as gapwise:
    info = gapwise.info()
    mn = gapwise.buildings.get("MN")
    buildings = gapwise.buildings.list(q="instructional", category="academic")
    places = gapwise.places.list(building="HM", kind="library")
    route = gapwise.routes.calculate(from_building="MN", to_building="IB")

    for place in places.items:
        # Unknown is not closed; keep the distinction in your UI.
        print(place["name"], place["availability"]["state"])
from gapwise import AsyncGapwise

async with AsyncGapwise() as gapwise:
    places = await gapwise.places.list(open_now="unknown")

Lists return a typed immutable Page with items, pagination, data_version, and request_id. Configure base_url, timeout, headers, or inject an httpx.Client/AsyncClient. Injected clients are never closed by the SDK.

Structured API failures raise GapwiseAPIError with status_code, stable code, optional details, and request_id. Network failures and timeouts raise GapwiseTransportError; malformed successful responses raise GapwiseResponseError.

API v1, campus data versions, and this package version evolve independently. See ../../docs/DEVELOPER_PLATFORM.md for filtering, uncertainty, privacy, versioning, rate-limit, and migration guidance.

Download files

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

Source Distribution

gapwise-0.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

gapwise-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file gapwise-0.1.0.tar.gz.

File metadata

  • Download URL: gapwise-0.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for gapwise-0.1.0.tar.gz
Algorithm Hash digest
SHA256 50f16ff5e4d1308c09ccbc1795ce055ef56600452c1fbf4c65756ec8d2bbbd5b
MD5 433911fefd9ff55bef0da3e6a513095d
BLAKE2b-256 4e19407e76418bcbb8cfe502472103acce239f628dd8c16ec77d6a10905ac87e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gapwise-0.1.0.tar.gz:

Publisher: release-sdks.yml on andrewmuratov/gapwise

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gapwise-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gapwise-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for gapwise-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b241e7fc67daf2fc1b978f6b7831ba186c2c7bf839c4346392e23ee86ea1eb4
MD5 e5220efc4b84bca5af0ea538ba4469b0
BLAKE2b-256 9face2056cdd33b258b72ac37822e5284edb0775a5ef7333c29cca0f0e4ae88e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gapwise-0.1.0-py3-none-any.whl:

Publisher: release-sdks.yml on andrewmuratov/gapwise

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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