Skip to main content

yamtam cli

CLI to access real-time NYC metro-area transit data from yamtam.nyc.

Reads the cadence-separated data files yamtam.nyc publishes (realtime trips and static stops per system, plus the shared route-color map) and prints arrivals for the stations you care about.

usage: yamtam.py [-h] [--rt RT] [--stop STOP] [--system SYSTEM]

options:
  -h, --help       show this help message and exit
  --rt RT          Repeated optional routes (e.g. E, F, 7, LIRR1, MNR1)
  --stop STOP      Repeated optional stops (station name or GTFS id)
  --system SYSTEM  Repeated optional systems (subway, lirr, mnr, ferry, bus)

Examples

Show next arrivals at Court Sq-23 St on the subway:

yamtam --stop "Court Sq" --system subway

Show only the E and F at a station:

yamtam --stop "Court Sq-23 St" --rt E --rt F

Behavior

  • Systems: subway, lirr, mnr, ferry, bus. Defaults to all.
  • Express merge: express trains (FX, 7X, 6X) are folded into their local route (F, 7, 6) so one destination shows one combined row.
  • Direction ordering: southbound groups are listed first, then northbound.
  • Headings: subway arrivals are grouped by destination borough (e.g. Southbound (Brooklyn-bound)); LIRR westbound notes whether the train terminates at Penn Station or Grand Central.
  • Route badges: subway symbols are centered in a 5-char color bar (e.g. E ), while LIRR/MNR/bus codes start at the 2nd character (e.g. L1 , L10, M20). Commuter-rail codes are shortened (LIRR1 -> L1, MNR1 -> M1).
  • Colors: routes are tinted with their official hex color when the terminal supports 24-bit ANSI color.
  • Caching: feeds are cached under /tmp/yamtam/ and refreshed only when stale (realtime every ~2 min, static stops/colors daily).

Development

python3 -m pytest cli/yamtam/tests/
ruff format cli/yamtam/
ruff check cli/yamtam/

Metadata

Release files for yamtam 0.3.1

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

Source distribution (sdist)

Source distribution for yamtam 0.3.1
File Size Uploaded
yamtam-0.3.1.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yamtam 0.3.1
File Interpreter ABI Platform
yamtam-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / yamtam-0.3.1.tar.gz

Download URL yamtam-0.3.1.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
16cc090f0c7b7e87b7e94883b9de6bd23e88a6573bb647a1875f031f214ee4a2
BLAKE2b-256 checksum
How to use checksums
49c0bb723f20950ebef99641413474973eb134cce1c1c5f329ff1df11aa31782
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / yamtam-0.3.1-py3-none-any.whl

Download URL yamtam-0.3.1-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6bcc987d3113f57316b7aa505ad7c24bb10e1a5f189d1f3c969db232f8863721
BLAKE2b-256 checksum
How to use checksums
cf62e43df64288da2de7a604c8d33639332fd2fb984e18eebc83fbf0d4b4b8fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release history Release notifications | RSS feed

0.3.2

2 release files

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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