Tools for accessing Metro Transit data
Project description
Metro Transit Python SDK
A community-built Python SDK for accessing Metro Transit's NexTrip data.
>>> from metrotransit import Client
>>> from metrotransit.api.nex_trip import get_nextrip_route_id_direction_id_place_code as get_details
>>> client = Client(base_url="https://svc.metrotransit.org")
# Get upcoming trips for the westbound Green Line at East Bank Station
>>> get_details.sync('902', 0, 'EABK', client=client)
NexTripResult(...)
Installation
The SDK is available on PyPI. Install it with your preferred package manager:
$ uv add metrotransit
$ pip install metrotransit
The SDK officially supports Python 3.10+.
Documentation
Every path/method combo in the official spec is represented as a Python module with four functions, and all parameters can be provided with method arguments:
sync: Blocking request that returns parsed data (if successful) orNonesync_detailed: Blocking request that always returns aRequest, optionally withparsedset if the request was successful.asyncio: Likesyncbut async instead of blockingasyncio_detailed: Likesync_detailedbut async instead of blocking
Project details
Release history Release notifications | RSS feed
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 metrotransit-0.1.2.tar.gz.
File metadata
- Download URL: metrotransit-0.1.2.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48617292959adab478a5d5174a6134e0ab09e47d667e82f6ff018a4762e1c3be
|
|
| MD5 |
3fb84e0f0ac64bd9d11210d81ec7af53
|
|
| BLAKE2b-256 |
ce935dbbca519a3e67547c1103b7783dcb842c07f6c5d664861e79ecf126574c
|
Provenance
The following attestation bundles were made for metrotransit-0.1.2.tar.gz:
Publisher:
publishing.yml on bsoyka/metrotransit-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metrotransit-0.1.2.tar.gz -
Subject digest:
48617292959adab478a5d5174a6134e0ab09e47d667e82f6ff018a4762e1c3be - Sigstore transparency entry: 803533711
- Sigstore integration time:
-
Permalink:
bsoyka/metrotransit-sdk@62596779d1952be8a7a0bcde61f2d56412fc8207 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/bsoyka
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publishing.yml@62596779d1952be8a7a0bcde61f2d56412fc8207 -
Trigger Event:
release
-
Statement type:
File details
Details for the file metrotransit-0.1.2-py3-none-any.whl.
File metadata
- Download URL: metrotransit-0.1.2-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abf16ac0b81146c601730e5486f8a9f7c9200a141571eadb622c31b9ab1936c4
|
|
| MD5 |
3467a1c4e9b57bb921884c335b1a9a62
|
|
| BLAKE2b-256 |
190fa97574e893722bc8d3f3632255656a344946941fbad1b72f18319b25a849
|
Provenance
The following attestation bundles were made for metrotransit-0.1.2-py3-none-any.whl:
Publisher:
publishing.yml on bsoyka/metrotransit-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metrotransit-0.1.2-py3-none-any.whl -
Subject digest:
abf16ac0b81146c601730e5486f8a9f7c9200a141571eadb622c31b9ab1936c4 - Sigstore transparency entry: 803533714
- Sigstore integration time:
-
Permalink:
bsoyka/metrotransit-sdk@62596779d1952be8a7a0bcde61f2d56412fc8207 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/bsoyka
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publishing.yml@62596779d1952be8a7a0bcde61f2d56412fc8207 -
Trigger Event:
release
-
Statement type: