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.

Source Distribution

tflunifiedapi-0.2.1.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file tflunifiedapi-0.2.1.tar.gz.

File metadata

  • Download URL: tflunifiedapi-0.2.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using 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.27.0 CPython/3.7.0

File hashes

Hashes for tflunifiedapi-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ad602d90c9861a55d8893d8012b6d0d02b351a66a0388c127b9524bc4f4a4659
MD5 be9966093a27024ce2aceb32401b9761
BLAKE2b-256 8c55e2dd27dd30ce06883f710063cdfbecafd3980074fef1fe3d12f9108931d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page