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.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.3.0
File Size Uploaded
yamtam-0.3.0.tar.gz 10.0 kB Details

Built distribution (wheel)

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

Total release size: 19.5 kB

Release files / yamtam-0.3.0.tar.gz

Download URL yamtam-0.3.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d51fedd1470d2f0171f1de579f850779548586b3ea1523eac3625947704ed792
BLAKE2b-256 checksum
How to use checksums
bb833ef4dcde14111674b843288ddd87f2e724f665184006f8908d65a21ef6dd
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.0-py3-none-any.whl

Download URL yamtam-0.3.0-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bf382eae58b7be6fd45dc49da42abaa93521c11bd9bb0d9bf764b3bca97bbe3
BLAKE2b-256 checksum
How to use checksums
c0141047ca90f6357926d9bd4597ec3c094aa1df15bd8838839e3c5be3f63cbe
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

0.3.1

2 release files

This release

0.3.0 This release

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