Real time BART (Bay Area Rapid Transit) information in your terminal!
Project description
Real time BART (Bay Area Rapid Transit) information in your terminal!
Features
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
Requirements
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
Installation
pip install pybart
Usage
usage: bart [-h] [-l] [-v] [STN [STN ...]] Display real time BART estimates. positional arguments: STN abbreviation of station to look up (default: BART_STATIONS environment variable) optional arguments: -h, --help show this help message and exit -l, --list print list of station abbreviations and exit -v, --version show program's version number and exit examples: bart mcar get estimates for the MacArthur station bart embr cols get estimates for the Embarcadero and Coliseum stations
Configuration
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.
License
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
Hashes for pybart-1.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f68504f012261cca11b2515201db5592a1640c81af08c5af396d2c336624b7a2 |
|
MD5 | 2d4271ea19aaf13ce9842f519899c77b |
|
BLAKE2b-256 | 95d45299199eb92cbe71083b7868ce42116931b82267911cfc5cb4ecb7355047 |