Skip to main content

PyDublinBus

Python Interface for the Dublin Bus RTPI API.

Example usage

Time table:

>>> from pydublinbus import DublinBusRTPI
>>> mybus=DublinBusRTPI(stopid='312')
>>> mybus.bus_timetable()
[{'due_in': '6', 'route': '26'},
 {'due_in': '8', 'route': '25B'},
 {'due_in': '15', 'route': '67'},
 {'due_in': '22', 'route': '66B'},
 {'due_in': '23', 'route': '25A'},
 {'due_in': '31', 'route': '66A'},
 {'due_in': '38', 'route': '25B'},
 {'due_in': '39', 'route': '66'},
 {'due_in': '41', 'route': '26'},
 {'due_in': '41', 'route': '25'},
 {'due_in': '45', 'route': '67'},
 {'due_in': '46', 'route': '25A'}]

Time table filtered by route

>>> from pydublinbus import DublinBusRTPI
>>> mybus=DublinBusRTPI(stopid='312', route='25A')
>>> from pprint import pprint
>>> mybus.bus_timetable()
[{'due_in': '20', 'route': '25A'},
 {'due_in': '43', 'route': '25A'}]

Raw json data:

>>> from pydublinbus import DublinBusRTPI
>>> mybus=DublinBusRTPI(stopid='312')
>>> mybus.get_rtpi_data()

Metadata

Release files for pydublinbus 0.0.4

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

Source distribution (sdist)

Source distribution for pydublinbus 0.0.4
File Size Uploaded
pydublinbus-0.0.4.tar.gz 2.4 kB Details

Built distribution (wheel)

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

Total release size: 5.9 kB

Release files / pydublinbus-0.0.4.tar.gz

Download URL pydublinbus-0.0.4.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ac1f87fef117750d0a935fc94a3b00be336551bb32d1f57090ffcbdc7be645d5
BLAKE2b-256 checksum
How to use checksums
12e09b0ab1c69e61b68f36bb76b913b07899b5f29d85c8980aedc988b8b92e4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

Release files / pydublinbus-0.0.4-py3-none-any.whl

Download URL pydublinbus-0.0.4-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67b9682cd21aa967166f00d8690165b30b3665f5f400237fad7d9c91c7b46436
BLAKE2b-256 checksum
How to use checksums
e5bfc63167f7db9b5c1f188287deee231259ba42e614cb520fb3b2fe069081df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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