Skip to main content

Stay up to date with corona virus data - Download and generate reports

Project description

covidify PyPi Version PyPI - Downloads PyPI - License Python Versions Buy Me a Coffee at ko-fi.com

FeaturesHow To UseInstallVisualizationsData SourceCreditsTo-Do List


Features

Covidify downloads the latest covid-19 data for confirmed cases, deaths and recoveries.

  • Creates a time series dataset
  • Creates a daily stats dataset
  • Forecast global and country confirmed cases
  • Generate visualizations
  • Filter by country
  • List all countries affected
  • Shows number of people currently infected
  • Generates an excel report including all of the above

logo


Install

  • pip install covidify

How to use

$ covidify
Usage: covidify [OPTIONS] COMMAND [ARGS]...

    COVIDIFY 

   - use the most up-to-date data to generate reports of 
     confirmed cases, fatalities and recoveries.

Options:
  --help  Show this message and exit.

Commands:
  list  List all the countries that have confirmed cases.
  run   Generate reports for global cases or refine by country.
$ covidify run --help
Usage: covidify run [OPTIONS]

Options:
  --output TEXT    Folder to output data and reports [Default:
                   /Users/award40/Desktop/covidify-output/]
  --source TEXT    There are two datasources to choose from, Johns Hopkins
                   github repo or wikipedia -- options are JHU or wiki
                   respectively [Default: JHU]
  --country TEXT   Filter reports by a country
  --top TEXT       Top N infected countries for log plot. [Default: 10]
  --forecast TEXT  Number of days to forecast cumulative cases in the future.
                   [Default: 15]
  --help           Show this message and exit.

Example Commands:

# List all countries affected 
covidify list --countries
# Will default to desktop folder for output and github for datasource
covidify run 
# Specify output folder and source
covidify run --output=<PATH TO DESIRED OUTPUT FOLDER>
# Filter reports by country
covidify run --country="South Korea"
# Show top 20 infected countries on a logarithmic scale
covidify run --top=20
# Forecast cumulative cases in America for 14 days into the future
covidify run --country=America --forecast=14

Visualizations

An excel spreadsheet is generated with a number of visualizations and statistics.

logo

Logarithmic Plot

This plot shows the top N infected countries on a logarithmic scale. alt text

Forecasting

An ARIMA model is trained and used to forecast the cumulative cases for N number of days into the future (DISCLAIMER: the forecast is a ballpark figure, and should not be taken as gospel) alt text

Accumulative Trend

This is an accumulative sum trendline for all the confirmed cases, deaths and recoveries. alt text

Daily Trendline

This is a daily sum trendline for all the confirmed cases, deaths and recoveries. alt text

Stacked Daily Confirmed Cases

This stacked bar chart shows a daily sum of people who are already confirmed (red) and the people who have been confirmed on that date (blue)

alt text

Daily Confirmed Cases

A count for new cases on a given date, does not take past confirmations into account. alt text

Daily Deaths

A count for deaths on a given date, does not take past deaths into account. alt text

Daily Recoveries

A count for new recoveries on a given date, does not take past recoveries into account. alt text

Currently Infected

A count for all the people who are currently infected for a given date. alt text


Credits

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

covidify-1.3.0.tar.gz (60.0 MB view details)

Uploaded Source

Built Distribution

covidify-1.3.0-py2.py3-none-any.whl (18.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file covidify-1.3.0.tar.gz.

File metadata

  • Download URL: covidify-1.3.0.tar.gz
  • Upload date:
  • Size: 60.0 MB
  • 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.6.7

File hashes

Hashes for covidify-1.3.0.tar.gz
Algorithm Hash digest
SHA256 63df3158a1a9fda8ff9d7c252a7b3e802f12b25f5722f6c62662edc564b2fceb
MD5 67da209e8d1d20d1d62ee9a62519b377
BLAKE2b-256 6502a7970d1bda154abd1285b4dc8b4591e3972c9c3888db2752b16f6cbf2bd6

See more details on using hashes here.

File details

Details for the file covidify-1.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: covidify-1.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 2, 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.6.7

File hashes

Hashes for covidify-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 708f437ca6fcd887d31073cbc558cd0656f837b47a0dd15c2ca5d07045508887
MD5 e668caac3b53494585963ab59a215c32
BLAKE2b-256 566abecdcf8145ac634bc5091762062e77e6a3dbd4034b819bac9afa5b034808

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page