Skip to main content

gapwise

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

The canonical Python package is published on PyPI as gapwise. GitHub Packages does not provide a PyPI-compatible Python registry, so tagged Python releases are additionally mirrored on GitHub Releases as the verified wheel and source distribution built from the matching python-v* tag.

python -m pip install gapwise==0.1.1

For direct artifact use, the matching GitHub Release contains:

gapwise-0.1.1-py3-none-any.whl
gapwise-0.1.1.tar.gz

PyPI remains the preferred installation channel; the GitHub release assets provide a source-adjacent mirror rather than a second Python package index.

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.

Metadata

Release files for gapwise 0.1.1

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

Source distribution (sdist)

Source distribution for gapwise 0.1.1
File Size Uploaded
gapwise-0.1.1.tar.gz 9.0 kB Details

Built distribution (wheel)

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

Total release size: 17.1 kB

Release files / gapwise-0.1.1.tar.gz

Download URL gapwise-0.1.1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
556001910e6352330a85e44777ce92e9c800aa8f610f145310693541bf54c671
BLAKE2b-256 checksum
How to use checksums
7814d47ee0910dc6a5c4a99051c121b7dc5d5c5058b7f48addd0142a22bb17ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / gapwise-0.1.1-py3-none-any.whl

Download URL gapwise-0.1.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51ed8b1972dafdb02be5a6ba328bf164a8abb3f34f445d66784384b5e4a66d7d
BLAKE2b-256 checksum
How to use checksums
555811d41d0bd9c6c8cc370ee86987d0b0a1fd2ab1104c4c5f190d3c70fb9cdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release 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