Track some basic covid19 statistics
Project description
covid19
Simple but somewhat morbid tool to display information about COVID19.
Runs on a loop checking the number of Confirmed, Recovered and Deaths and also the percentage died.
All data is pulled from: https://github.com/CSSEGISandData/COVID-19
User can specify the interval to check, the type of display (for small displays), and display the record of any changes. In addition there's a test option which allows you to enter your own data files, or make modifications.
Data on Deaths, Confirmed cases, Recoveries and Percentage Died are calculated by pulling the CSV files down, and creating pandas df's, summing the data up ofthe last known column, which is also the latest.
To install on a Mac:
cd covid19 # cd to the directory
brew install pipenv
pipenv install # Seems temperamental - so use manual steps below if needed
Otherwise you need python3 and the packages (pip3 install): pandas, colorama, termcolor, requests:
brew install python3 #(or sudo apt install python3 etc)
pip3 install pandas colorama termcolor requests
Example running:
RWELLUM-M-C5JH:covid19 rwellum$ ./covid19.py -i 400 -h
usage: covid19.py [-h] [-i INTERVAL] [-r] [-s] [-f] [-v] [-t]
Grab and process the latest COVID-19 data
optional arguments:
-h, --help show this help message and exit
-i INTERVAL, --interval INTERVAL
interval in seconds between retrieving the data again,
default one hour(3600s)
-r, --record view a record of all changes
-s, --split split the display to fit smaller terminals
-f, --force bypass safety rails - very dangerous
-v, --verbose turn on verbose messages, commands and outputs
-t, --test run with a test file
E.g.: ./covid19.py -i 600 -s
Project details
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 covid19-counter_pkg-richwellum-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71844651ee55b2aafd378a4d2f36e4c920c761497cba6bba141a1b290baba6da |
|
MD5 | 835493fb94c9c70de2a71ce4c3eb68c9 |
|
BLAKE2b-256 | 00000874fbef083971cc79808b722e097b427ca26f89754b765bf10058d68ef4 |
Hashes for covid19_counter_pkg_richwellum-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79ba88f1ea50241130876c69277b5976235739dc64396fd2d114180eb14cf941 |
|
MD5 | b3a551f80b943334592df1f8291e7ac3 |
|
BLAKE2b-256 | 5fd32520b5e18727fe15c63561eb8f46cb79f16498e648709910f309d8ae74ec |