Skip to main content

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.

Sample usage

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

Metadata

Release files for fiveoneone 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fiveoneone 0.6.0
File Size Uploaded
fiveoneone-0.6.0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fiveoneone 0.6.0
File Interpreter ABI Platform
fiveoneone-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / fiveoneone-0.6.0.tar.gz

Download URL fiveoneone-0.6.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f3b45e624a559d321563e00f9044d4eaf618a87fd04f9aa472201467708b0fde
BLAKE2b-256 checksum
How to use checksums
6df9ca7a5d72b8d2a5b6bb1e87e97e3282d9235dade2d86ad4e0aa874ddee738
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release files / fiveoneone-0.6.0-py3-none-any.whl

Download URL fiveoneone-0.6.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90f0e3eb1ce167d545211927e1f05f109226937cb0c46ad946a8813d8b472011
BLAKE2b-256 checksum
How to use checksums
6fe67e9cc4167ec3c91ee264bf43eeac8c77b48f994a6ef8ff68c2fcb8f0a407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.1

1 release file

0.5.0

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page