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
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
File details
Details for the file covid19-counter-richwellum-0.0.1.tar.gz
.
File metadata
- Download URL: covid19-counter-richwellum-0.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa5aedf1df459d496a902789d4b8176ecdf2ac857374941999a9dafd3e8a6e8e |
|
MD5 | 59581e6a21bf6d837dddf0401583d471 |
|
BLAKE2b-256 | 8f7c7117c06068cbceb206d2aba596ec129d87917edd157299ed7422214d3aae |
File details
Details for the file covid19_counter_richwellum-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: covid19_counter_richwellum-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd00cc9eca7ad64710a28241377cf8cdc93f19f20df7626e02e0a6c21bc75f38 |
|
MD5 | aa83b80751f55b5a5c157228b1aff729 |
|
BLAKE2b-256 | 55e4712d4dbdef039a018c658cd8fae32d4cbd2c98c168f0ce1301f44a50a42e |