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.
  • 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.2.0

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.2.0
File Size Uploaded
yamtam-0.2.0.tar.gz 7.8 kB Details

Built distribution (wheel)

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

Total release size: 15.7 kB

Release files / yamtam-0.2.0.tar.gz

Download URL yamtam-0.2.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5ef0d674c866e4f10792d35752f8a747d4727efc9dd0ff0efa24cec9971d6336
BLAKE2b-256 checksum
How to use checksums
e0c88d8808b40eedbc15cd36f5df0a08c3a0ffeb46e7bc82ff1b2afcd0b58c74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL yamtam-0.2.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72a158ef9c4b373f47586cf047d2e110472b897e439008b068e0e79b75650219
BLAKE2b-256 checksum
How to use checksums
65b5570d3ad3c3bea067251f62ecffe0da6e5870fc5bb5d4173137845b7765a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

This release

0.2.0 This release

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