Metadata-Version: 2.1
Name: python-ottawa-transit
Version: 0.2.0
Summary: Python interface for OCTranspo API
Home-page: https://github.com/buckley-w-david/python-ottawa-transit
License: MIT
Author: David Buckley
Author-email: buckley.w.david@gmail.com
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown

# python-ottawa-transit

Python interface to the [OC Transpo](http://www.octranspo.com/developers/documentation) API and utilities for working with the returned data.

## Installation

The package is available on [PyPi](https://pypi.org/project/python-ottawa-transit)
```bash
pip install python-ottawa-transit
```

Alternativly it can be installed from source using [Poetry](https://github.com/sdispater/poetry)
```bash
git clone https://github.com/buckley-w-david/python-ottawa-transit.git
cd python-ottawa-transit
poetry install
```

## Usage

```python3
>>> 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"}}}}
```

