python-ottawa-transit
Python interface to the OC Transpo API and utilities for working with the returned data.
Installation
The package is available on PyPi
pip install python-ottawa-transit
Alternativly it can be installed from source using Poetry
git clone https://github.com/buckley-w-david/python-ottawa-transit.git
cd python-ottawa-transit
poetry install
Usage
>>> from python_ottawa_transit import OCTransportApi
>>> api = OCTransportApi(app_id = 'APPLICATION_ID', app_key = 'APPLICATION_KEY')
>>> api.get_route_summary_for_stop(stop_no=8435)
{"GetRouteSummaryForStopResult":{"StopNo":"8435","StopDescription":"BANK \\/ COLLINS","Error":"","Routes":{"Route":{"RouteNo":6,"DirectionID":1,"Direction":"Northbound","RouteHeading":"Rockcliffe"}}}}
Metadata
Release files for python-ottawa-transit 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-ottawa-transit-0.2.0.tar.gz | 2.6 kB | Without provenance | Details for python-ottawa-transit-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_ottawa_transit-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for python_ottawa_transit-0.2.0-py3-none-any.whl |
Total release size: 8.4 kB
Release files / python-ottawa-transit-0.2.0.tar.gz
| Download URL | python-ottawa-transit-0.2.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
355967f202c8d23a4f86a2bc40c7acfbf921d136f5bb0103ab983036221ba185
|
|
BLAKE2b-256 checksum How to use checksums |
9d9b1f0a241a0cd37af4cf5e246d47ec7ea57aa69c64a0c3a81b5e2ea145bb62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / python_ottawa_transit-0.2.0-py3-none-any.whl
| Download URL | python_ottawa_transit-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cecbfd90ffd5a4914c6ea8f6f2ab560648af4b0a02f67e3f23f66d1b5bd42c87
|
|
BLAKE2b-256 checksum How to use checksums |
58ec9d22dd608ca91e00d8bedbd5d2a753fc47c40ed97a8ea1d18402112b87af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-ottawa-transit 0.2.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.