Skip to main content

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.

Output looks like

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

Metadata

Release files for covid19-counter-richwellum 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for covid19-counter-richwellum 0.0.1
File Size Uploaded
covid19-counter-richwellum-0.0.1.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for covid19-counter-richwellum 0.0.1
File Interpreter ABI Platform
covid19_counter_richwellum-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.5 kB

Release files / covid19-counter-richwellum-0.0.1.tar.gz

Download URL covid19-counter-richwellum-0.0.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aa5aedf1df459d496a902789d4b8176ecdf2ac857374941999a9dafd3e8a6e8e
BLAKE2b-256 checksum
How to use checksums
8f7c7117c06068cbceb206d2aba596ec129d87917edd157299ed7422214d3aae
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / covid19_counter_richwellum-0.0.1-py3-none-any.whl

Download URL covid19_counter_richwellum-0.0.1-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd00cc9eca7ad64710a28241377cf8cdc93f19f20df7626e02e0a6c21bc75f38
BLAKE2b-256 checksum
How to use checksums
55e4712d4dbdef039a018c658cd8fae32d4cbd2c98c168f0ce1301f44a50a42e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page