fiveoneone-0.6.0
توضیحات
A python API to consume transit data from http://511.org.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fiveoneone-0.6.0 |
| نام | fiveoneone |
| نسخه کتابخانه | 0.6.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ramiro Berrelleza |
| ایمیل نویسنده | rberrelleza@gmail.com |
| آدرس صفحه اصلی | https://github.com/rberrelleza/511-transit |
| آدرس اینترنتی | https://pypi.org/project/fiveoneone/ |
| مجوز | MIT |
511-transit
===========
Python API to consume transit data from http://511.org.
In order to use this library, you will need to signup for a [511.org developer token](http://511.org/developer-resources_transit-api.asp).
## Sample usage
``` python
from fiveoneone.route import Route
from fiveoneone.stop import Stop
token = "YOUR_DEVELOPER_TOKEN"
route = Route(token, "SFMTA", "45-Union Stockton", "45", True)
stop = Stop(token, "Union St and Buchanan St", "17056")
departures = stop.next_departures(route.code, "Outbound")
print "{} Outbound will arrive to {} in {} minutes".format(route.code, stop.name, departures.times[0])
# 45 Outbound will to Union St and Buchanan St in 5 minutes
```
* See the tests/test_integration.py for other usages.
## Run the tests
requirements.dev.txt has all the requirements to run the tests. After that, from the repo root do to run all the available tests:
```
nosetests
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.22 | requests |
نحوه نصب
نصب پکیج whl fiveoneone-0.6.0:
pip install fiveoneone-0.6.0.whl
نصب پکیج tar.gz fiveoneone-0.6.0:
pip install fiveoneone-0.6.0.tar.gz