Skip to main content

TWMetro

TWMetro is a Python library that provides an interface to access and retrieve status information about the Tyne and Wear Metro system in the UK.

Currently Supported Features

  • Retrive a list of all Metro lines and their coordinate points
  • Retrieve a list of all Metro stations
  • Retrieve the status of all Metro trains
  • Retrieve a list of all Metro incidents

Installation

You can install the TWMetro library using pip:

pip install TWMetro

Usage

from TWMetro import TWMetro

client = TWMetro("your_jwt_token_here")

# Get all Metro lines
lines = client.get_lines()

# Get all Metro stations
stations = client.get_metrostations()
# Get all Metro train status
trains = client.get_trainstatus()
# Get all Metro incidents
incidents = client.get_warnings()
# Get all metro lines
lines = client.get_metrolines()

Metadata

Release files for TWMetro 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TWMetro 0.0.2
File Size Uploaded Provenance Actions
twmetro-0.0.2.tar.gz 30.7 kB With provenance Details for twmetro-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for TWMetro 0.0.2
File Interpreter ABI Platform Actions
twmetro-0.0.2-py3-none-any.whl Python 3 none any Details for twmetro-0.0.2-py3-none-any.whl

Total release size: 39.5 kB

Release files / twmetro-0.0.2.tar.gz

Download URL twmetro-0.0.2.tar.gz
Size 30.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9333c6a485cd5102f44ee595f038a8ed8db7d2aa98ad91b8321dc9ce9f7b80c1
BLAKE2b-256 checksum
How to use checksums
774d509917a91df355eef1c95e75e458a36640626756838d24f718ca11282740
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 17, 2025.

Transparency log

Release files / twmetro-0.0.2-py3-none-any.whl

Download URL twmetro-0.0.2-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fbc61aa2de026544493ce8b1a39dd0590036e2e5827b476882c7f297816b297
BLAKE2b-256 checksum
How to use checksums
d239ac8f45c2842ec6b8d3515732ee646ee3f6144dba8fab35128ffe7330a617
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 17, 2025.

Transparency log

Security for TWMetro 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for twmetro-0.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 17, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page