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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50f16ff5e4d1308c09ccbc1795ce055ef56600452c1fbf4c65756ec8d2bbbd5b
|
|
| MD5 |
433911fefd9ff55bef0da3e6a513095d
|
|
| BLAKE2b-256 |
4e19407e76418bcbb8cfe502472103acce239f628dd8c16ec77d6a10905ac87e
|
Provenance
The following attestation bundles were made for gapwise-0.1.0.tar.gz:
Publisher:
release-sdks.yml on andrewmuratov/gapwise
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gapwise-0.1.0.tar.gz -
Subject digest:
50f16ff5e4d1308c09ccbc1795ce055ef56600452c1fbf4c65756ec8d2bbbd5b - Sigstore transparency entry: 2696545037
- Sigstore integration time:
-
Permalink:
andrewmuratov/gapwise@715d80ed13e558f1b40754ea18793423669602d2 -
Branch / Tag:
refs/tags/python-v0.1.0 - Owner: https://github.com/andrewmuratov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-sdks.yml@715d80ed13e558f1b40754ea18793423669602d2 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b241e7fc67daf2fc1b978f6b7831ba186c2c7bf839c4346392e23ee86ea1eb4
|
|
| MD5 |
e5220efc4b84bca5af0ea538ba4469b0
|
|
| BLAKE2b-256 |
9face2056cdd33b258b72ac37822e5284edb0775a5ef7333c29cca0f0e4ae88e
|
Provenance
The following attestation bundles were made for gapwise-0.1.0-py3-none-any.whl:
Publisher:
release-sdks.yml on andrewmuratov/gapwise
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gapwise-0.1.0-py3-none-any.whl -
Subject digest:
8b241e7fc67daf2fc1b978f6b7831ba186c2c7bf839c4346392e23ee86ea1eb4 - Sigstore transparency entry: 2696545097
- Sigstore integration time:
-
Permalink:
andrewmuratov/gapwise@715d80ed13e558f1b40754ea18793423669602d2 -
Branch / Tag:
refs/tags/python-v0.1.0 - Owner: https://github.com/andrewmuratov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-sdks.yml@715d80ed13e558f1b40754ea18793423669602d2 -
Trigger Event:
push
-
Statement type: