Python interface for OCTranspo API
Project description
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"}}}}'
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
Close
Hashes for python-ottawa-transit-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 515a24c50423739dad0d49b88f9835e3fc6dab665b29d00192c7a8fddea39362 |
|
MD5 | 4347e3dd92c304f383b0adad4b08485a |
|
BLAKE2b-256 | 60ab18abe18432f0d1c117f286b5ede65039255539f606aa1a9912e158850e59 |
Close
Hashes for python_ottawa_transit-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ecb5f63b7c9899a5bb24388951fb2c52038fadb9aa8deb611d5b3e5368d64c1 |
|
MD5 | fc3d94cda891c85099e0b7e9aa348fa7 |
|
BLAKE2b-256 | 95e97f2d42f1c46bf64068a6526b162810dab84f506dff90465ddbed95faf55f |