Skip to main content

Python wrapper for Transport for London (TfL) Unified API

Project description

TfL-python-api

Transport for London (TfL) Unified API is released here is for open data users to use in their own software and services.

Get Started

To use the TfL Unified API, developers should register for an Application ID (app_id) and Application Key (app_key).

from tfl.client import Client
from tfl.api_token import ApiToken

app_id = 'APPLICATION ID'
app_key = 'APPLICATION KEY'

token = ApiToken(app_id, app_key)

client = Client(token)
print (client.get_line_meta_modes())
print (client.get_lines(mode="bus")[0])
print (client.get_lines(line_id="victoria")[0])

API Documentation

This Python library provide a thin wrapper around the TfL Unified APIs. See the Transport for London Unified API for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tflunifiedapi, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size tflunifiedapi-0.2.1.tar.gz (9.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page