Given ATCO codes, shows the next bus times at given stops.
This is particularly useful bound to a keybinding and passed to libnotify’s notify-send program, so you can quickly get an overview of the next buses at stops you care about.
You must set WTB_APP_ID and WTB_APP_KEY to an app ID and app key valid at TransportAPI.
Usage
Pass ATCO codes with -a. See below for how to find them.
% WTB_APP_ID=xxx WTB_APP_KEY=xxx wtb -a 490004733D -a 4100008HAYRS Canada Water Bus Station (Stop D) (490004733D): - 199 to Canada Water: Due, 11 min, 25 min - C10 to Canada Water: 3 min, 9 min, 19 min - 1 to Canada Water: 8 min, 20 min - P12 to Surrey Quays: 11 min, 20 min - 225 to Canada Water: 13 min - LO-M to Canada Water: 23 min Haymarket Bus Station (R) (4100008HAYRS): - 44 to Dinnington: 4 min, 34 min, 1 hr 4 min - 43 to Cramlington Manor Walks Dudley Lane: 11 min, 41 min - 45 to Dinnington: 19 min, 49 min, 1 hr 19 min - 43 to Morpeth Bus Station: 26 min
How do I find ATCO codes?
For London bus stops, it’s in the URI. For example, in this URI, “490004733D” is the ATCO code.
For non-London, try the following:
Navigate to the bus stop on OpenStreetMap
On the right, click “layers”
Tick “map data”
Click on the bus stop on the map
On the left, you should see the ATCO code (possibly as something like naptan:AtcoCode)
Installation
To install the latest stable version from PyPi:
$ pip install -U whensthebus
To install the latest development version directly from GitHub:
$ pip install -U git+https://github.com/cdown/whensthebus.git@develop
Metadata
Release files for whensthebus 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| whensthebus-1.0.0.tar.gz | 3.8 kB | Without provenance | Details |
Release files / whensthebus-1.0.0.tar.gz
| Download URL | whensthebus-1.0.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61e171e255177ebb700da7db49ba1eb1bbaa2b48d8be1bfa0ea51f1b24bb6014
|
|
BLAKE2b-256 checksum How to use checksums |
9e5255e386a59efcecc52a952c74ec4fa011d987a611af6032632720c825fa67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0
|
Security for whensthebus 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.