Skip to content

samanpa/covid19

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Utility to get summary of historical covid data.

  • Original data can be found here

  • The data is only updated at night to see current numbers follow this link

USAGE:
    covid19 <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    confirmed
    deaths
    help            Prints this message or the help of the given subcommand(s)
    us-confirmed
    us-deaths
FLAGS:
    -h, --help            Prints help information
        --sort-by-name    sort by name instead of number of confirmed cases
    -V, --version         Prints version information

OPTIONS:
        --min <min>              Minimum value we want to show [default: 0]
    -n, --num-cols <num-cols>    Number of columns (days) to show [default: 2]
    -n, --num-rows <num-rows>    maximum number of entries to show [default: 100]
    -s, --skip <skip>            1 for daily stats, 7 for weekly, 30 for monthly [default: 1]
    -u, --url <url>               [default: https://raw.githubusercontent.com/CSSEGISandData/COVID-
                                 19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-
                                 Confirmed.csv]

ARGS:
    <countries>...

Examples

List the top 10 affected countries

./target/release/covid19 confirmed --num-rows 10
State   Country         3/7/20   3/8/20
        Japan           461      502
        US              416      538
        Spain           500      673
        Others          696      696
        Germany         799      1,040
        France          949      1,126
        Iran            5,823    6,566
        South Korea     7,041    7,314
        Italy           5,883    7,375
        Mainland China  80,652   80,699
Summary -------         103,220  106,529

Get a summary of the cases in Italy, UK, South Korea, Iran France and Germany for the last month (weekly intervals)

./target/release/covid19 confirmed --num-cols 4 --skip 7 Italy UK "South Korea" Iran France Germany
State   Country      2/16/20  2/23/20  3/1/20  3/8/20
        UK           9        9        36      273
        Germany      16       16       130     1,040
        France       12       12       130     1,126
        Iran         0        43       978     6,566
        South Korea  29       602      3,736   7,314
        Italy        3        155      1,694   7,375
Summary -------      69       837      6,704   23,694

Get the top 3 affected states in the US

./target/release/covid19 confirmed --num-rows 3 --num-cols 4 --states US
State   Country  3/4/20  3/5/20  3/6/20  3/7/20
NY      US       11      23      36      76
CA      US       35      51      59      82
WA      US       39      70      83      107
Summary -------  85      144     178     265

Get the states with at least at least 100 cases

./target/release/covid19 states --min 100`
State          Country  3/14/20  3/15/20
Florida        US       76       115
Colorado       US       101      131
Massachusetts  US       138      164
California     US       340      426
Washington     US       572      643
New York       US       525      732
Summary        -------  1,752    2,211

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages