- Summary of COVID-19 cases globally and for specific countries
- Bar graphs of historical numbers of cases
- Clone this repo
git clone https://github.com/tienbach/COVID-19-tracker.git
- Install modules in requirements
pip install -r requirements.txt
- Run:
python COVID-19-tracker/tracker.py [country ...]
- Then you can set an alias like
alias covid="python COVID-19-tracker/tracker.py"
to quickly track numbers
python tracker.py
python tracker.py us --days 10
python tracker.py us germany netherlands
If you want even more depression looking at the case numbers:
- Install BetterTouchTool and open it
- Choose
Touch Bar
in the dropdown menu on top and then the plus+
sign at the bottom - In the
Touch Bar Trigger Config
column, chooseShell Script / Task Widget
- In the
Scipt
field, putecho $(python3 [Path to tracker_touchbar.py] -a us germany)
to track active cases for the US and Germany. Optional args:-a
active cases,-d
deaths,-r
recovered cases. Active cases number shown by default - In the
Execute script every
field, put what you want. For me it's3600
- If you use virtualenv, make sure to put the command to activate it before the command above
termgraph.py
is copied over fromhttps://github.com/mkaz/termgraph
with 2 lines of bug fix of mine- Tested only on macOS Catalina with Python 3.7