covid19_counter
Simple tool to display information about COVID19 and store and tweet out the details.
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.
Option to Tweet the results - obviously requires a Twitter developer license and creds populated in an auth.py file.
This is currently active: https://twitter.com/alert_covid19
In a seperate terminal the user can see a running history of changes:
covid19_counter -r
To install on a Mac directly from github clone:
Needed: python3 and the packages (pip3 install): pandas, colorama, termcolor, requests twython:
brew install python3 #(or sudo apt install python3 etc)
pip3 install pandas colorama termcolor requests twython
Or install from pypi:
pip3 install covid19-counter-pkg-richwellum==<version>
covid19_counter
Example running:
RWELLUM-M-C5JH:covid19 rwellum$ covid19_counter -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-pkg-richwellum 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| covid19-counter_pkg-richwellum-0.0.6.tar.gz | 6.5 kB | Without provenance | Details for covid19-counter_pkg-richwellum-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| covid19_counter_pkg_richwellum-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for covid19_counter_pkg_richwellum-0.0.6-py3-none-any.whl |
Total release size: 14.8 kB
Release files / covid19-counter_pkg-richwellum-0.0.6.tar.gz
| Download URL | covid19-counter_pkg-richwellum-0.0.6.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a73d1ac2f6622865ff4481f380595d68bce7d5c69045fbb199cd92a1beb0385f
|
|
BLAKE2b-256 checksum How to use checksums |
4409f02e54a96f2899ae72ed84053d40eff2319a98a8751d78c2cec8cc9dc262
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
|
Release files / covid19_counter_pkg_richwellum-0.0.6-py3-none-any.whl
| Download URL | covid19_counter_pkg_richwellum-0.0.6-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82c23c9e3bb380f80914f340222a66d6506d1cf6349991f1e0ee32f03faa3bd7
|
|
BLAKE2b-256 checksum How to use checksums |
df5b525dccd129ea909977911ab1341e105ac0ddb2dc29696fb51b51709a7d21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
|
Security for covid19-counter-pkg-richwellum 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.