Skip to main content

Query TFL tube line status

Project description

tflstatuscli

tflstatuscli is a Python CLI written using the Typer CLI framework for querying the TFL Tube line statuses

Installation

pip install tflstatuscli

Usage

Show status of all tube lines

tflcli status   

Show status of particular tube line

tflcli status --line <line_name>

NOTE: When searching a particular tube line, validity is checked against the TFL APIs list of tube lines which at the time of writing this includes;

  • Bakerloo
  • Central
  • Circle
  • District
  • Hammersmith & City
  • Jubilee
  • Metropolitan
  • Northern
  • Piccadilly
  • Victoria
  • Waterloo & City

Show future disruptions of particular tube line

tflcli status --line <line_name> --startdate YYYY-MM-DD --enddate YYYY-MM-DD

NOTE: When searching a particular tube line, validity is checked against the TFL APIs list of tube lines which at the time of writing this includes;

  • Bakerloo
  • Central
  • Circle
  • District
  • Hammersmith & City
  • Jubilee
  • Metropolitan
  • Northern
  • Piccadilly
  • Victoria
  • Waterloo & City

Show all disruptions on TFL tube lines

tflcli disruptions

Poetry Usage

Run these commands within project root dir with python poetry installed.

Install package and dependancies locally

poetry install

Run tests

poetry run pytest -v

Build wheel

poetry build

NOTE: Wheel located under /dist in project root dir

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

tflstatuscli-0.1.5.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tflstatuscli-0.1.5-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file tflstatuscli-0.1.5.tar.gz.

File metadata

  • Download URL: tflstatuscli-0.1.5.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.2 Darwin/21.6.0

File hashes

Hashes for tflstatuscli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 5cdf27de9f763bb0623293e202e6c21fa432013e0193fc4c18ac3dbf98d3bf07
MD5 2ec974e5ee96eae3c3b16d33851ed00c
BLAKE2b-256 79b3d522cc79d12c6f45727c25e62abc060de45e34c2f166c67ebde4db2a7a3b

See more details on using hashes here.

File details

Details for the file tflstatuscli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: tflstatuscli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.2 Darwin/21.6.0

File hashes

Hashes for tflstatuscli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e17f89b0aee152afc3e8db3d763c4b0c8c33baa19ce91bef1933632c43bf7c69
MD5 1c4c574308e1cc4a3d8a7139726f4a90
BLAKE2b-256 674ef30207cc3b46662784bd7193f354a6f8b59f7559679aae7d019d463df421

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