A simple package for reading data from the Tyne and Wear Metro API
Project description
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
[!IMPORTANT] A JWT token is required to access the API. I cannot provide this token via scraping, so you will need to obtain it yourself from the Nexus website here.
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file twmetro-0.0.2.tar.gz.
File metadata
- Download URL: twmetro-0.0.2.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9333c6a485cd5102f44ee595f038a8ed8db7d2aa98ad91b8321dc9ce9f7b80c1
|
|
| MD5 |
f03eb2fd6fdc696f3c107324a377c287
|
|
| BLAKE2b-256 |
774d509917a91df355eef1c95e75e458a36640626756838d24f718ca11282740
|
Provenance
The following attestation bundles were made for twmetro-0.0.2.tar.gz:
Publisher:
pypi-publish.yml on sniff122/TWMetro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
twmetro-0.0.2.tar.gz -
Subject digest:
9333c6a485cd5102f44ee595f038a8ed8db7d2aa98ad91b8321dc9ce9f7b80c1 - Sigstore transparency entry: 769454396
- Sigstore integration time:
-
Permalink:
sniff122/TWMetro@7a15151d92ad5eadf3849021bdb5c264facbe408 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/sniff122
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@7a15151d92ad5eadf3849021bdb5c264facbe408 -
Trigger Event:
push
-
Statement type:
File details
Details for the file twmetro-0.0.2-py3-none-any.whl.
File metadata
- Download URL: twmetro-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fbc61aa2de026544493ce8b1a39dd0590036e2e5827b476882c7f297816b297
|
|
| MD5 |
9a71451d1b0943a026b221a1cad32501
|
|
| BLAKE2b-256 |
d239ac8f45c2842ec6b8d3515732ee646ee3f6144dba8fab35128ffe7330a617
|
Provenance
The following attestation bundles were made for twmetro-0.0.2-py3-none-any.whl:
Publisher:
pypi-publish.yml on sniff122/TWMetro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
twmetro-0.0.2-py3-none-any.whl -
Subject digest:
4fbc61aa2de026544493ce8b1a39dd0590036e2e5827b476882c7f297816b297 - Sigstore transparency entry: 769454400
- Sigstore integration time:
-
Permalink:
sniff122/TWMetro@7a15151d92ad5eadf3849021bdb5c264facbe408 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/sniff122
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@7a15151d92ad5eadf3849021bdb5c264facbe408 -
Trigger Event:
push
-
Statement type: