Skip to content

A Python module for accessing tube line status data for the London Underground via Transport for London's open data API.

License

Notifications You must be signed in to change notification settings

jacobtomlinson/tube-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TfL Tube Line Status for Python

PyPi version PyPi downloads Supported Python versions Development Status Build Status

A Python module for accessing tube line status data for the London Underground via Transport for London's open data API.

Installation

$ pip install tubestatus

Example Usage

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

Features

  • List all tube lines
  • Get the current status for a line

Contributing changes

Please feel free to submit issues and pull requests.

License

Currently under decision.

About

A Python module for accessing tube line status data for the London Underground via Transport for London's open data API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages