A Python module for accessing tube line status data for the London Underground via Transport for London's open data API.
$ pip install tubestatus
import tubestatus
# Create a new status object for retrieving data
current_status = tubestatus.Status()
# Get a list of tube lines
lines = current_status.list_lines()
# Loop through the lines and print the status of each one
for line in lines:
print line, "-", current_status.get_status(line).description
Example output
Jubilee - Good Service
Bakerloo - Good Service
Central - Good Service
Metropolitan - Good Service
District - Good Service
Piccadilly - Good Service
Overground - Good Service
Victoria - Good Service
DLR - Good Service
Hammersmith and City - Good Service
Waterloo and City - Good Service
Circle - Good Service
Northern - Good Service
- List all tube lines
- Get the current status for a line
Please feel free to submit issues and pull requests.
Currently under decision.