Skip to main content

Real time BART (Bay Area Rapid Transit) information in your terminal!

Project description

Version Downloads Python versions License

Real time BART (Bay Area Rapid Transit) information in your terminal!



  • Real time estimates and service advisories
  • Curses-based TUI with auto-refreshing and resizing
  • View multiple stations at the same time
  • Colors indicating transit lines, estimate times, and train lengths
  • Ability to configure a default set of stations
  • No dependencies; built with only standard libraries


  • Python 2.6+ or Python 3.0+ with the curses module installed (i.e. not Windows)
  • Terminal with 256 color support to correctly display the Richmond-Fremont line as orange (magenta otherwise)
    • Note: this usually involves setting the TERM environment variable to xterm-256color


pip install pybart


usage: bart [-h] [-v] {map,list,est,fare} ...

Display real time BART estimates.

optional arguments:
  -h, --help           show this help message and exit
  -v, --version        show program's version number and exit

    map                open station map in web browser
    list               show list of stations and their abbreviations
    est                display estimates for specified stations
    fare               show fare for a trip between two stations

  bart                 get estimates for $BART_STATIONS
  bart map             open station map
  bart list            list all stations
  bart est mcar        get estimates for MacArthur station
  bart est embr cols   get estimates for Embarcadero and Coliseum stations
  bart fare conc sfia  get fare for a trip between Concord and SFO stations


The following (optional) environment variables can be used to configure pybart:

  • BART_STATIONS - a comma-separated string (e.g. mcar,embr,cols) specifying the default stations to use when running bart with no arguments.
  • BART_API_KEY - the BART API key to use when fetching information. A public one is used by default, but you can get your own here.


BSD 3-Clause

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pybart, version 1.4.0
Filename, size File type Python version Upload date Hashes
Filename, size pybart-1.4.0-py2.py3-none-any.whl (11.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pybart-1.4.0.tar.gz (7.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page