Skip to main content

Covidcli- A CLI For Tracking and Getting Info About Coronavirus Outbreak

Project description

Covidcli

covidcli : A simple CLI for tracking and getting info about Coronavirus(covid19) Outbreak built with python.

PyPI - Python Version

GitHub license

Dependencies

covidcli was designed with CLICK with the following dependencies

  • pandas
  • pyfiglet
  • tabulate

Installation

pip install covidcli

Screenshot

Usage

Show Cases of Coronavirus

  • shows cases by the following cases confirmed|recovered|deaths|all
covidcli show confirmed
Showing:: confirmed cases
===========================================
Number of Confirmed Cases:: 5532341.0
      Province/State         Country/Region      Lat      Long     Date  Confirmed
0                NaN               Thailand  15.0000  101.0000  1/22/20        2.0
1                NaN                  Japan  36.0000  138.0000  1/22/20        2.0
2                NaN              Singapore   1.2833  103.8333  1/22/20        0.0
3                NaN                  Nepal  28.1667   84.2500  1/22/20        0.0
4                NaN               Malaysia   2.5000  112.5000  1/22/20        0.0
...              ...                    ...      ...       ...      ...        ...
31057            NaN                 Jersey  49.1900   -2.1100  3/23/20        0.0
31058            NaN            Puerto Rico  18.2000  -66.5000  3/23/20        0.0
31059            NaN  Republic of the Congo  -1.4400   15.5560  3/23/20        0.0
31060            NaN            The Bahamas  24.2500  -76.0000  3/23/20        0.0
31061            NaN             The Gambia  13.4667  -16.6000  3/23/20        0.0

[31062 rows x 6 columns]

Get Latest Cases of Coronavirus

covidcli get latest
Showing Latest Cases
Accessed Time::2020-03-24 11:18:56.031077
=============================
{'Confirmed Cases': 5532341.0, 'Recovered Cases': 1980983.0, 'Death Cases': 196876.0}

Get Previous Cases of Coronavirus

covidcli get previous
Showing Previous Cases
Previous Time::2020-03-22 09:13:44.128850
=============================
{'Confirmed Cases': 4283692, 'Recovered Cases': 1606190, 'Death Cases': 143329}

Fetch and Download Current Dataset

  • Downloads a clean dataset of the covid19 outbreak in a csv format
covidcli get dataset

Get Status of Cases By Country

  • Get status of cases by countries either as all cases,confirmed,recovered or deaths.
covidcli get status "Italy"
Get Status of Cases
Country::Italy
Accessed Time::2020-03-24 11:08:49.648721
=============================
{'Confirmed Cases': 497959.0, 'Recovered Cases': 50954.0, 'Death Cases': 39435.0}

Search Info By Country

  • similar to the get status it searches for countries
covidcli search "Italy" --cases confirmed 
Searched::Italy
===================================
Accessed Time:: 2020-03-24 11:11:40.266145
Total Number of confirmed Cases for Italy::497959.0

or

covidcli search "China" 
Searched::China
===================================
Showing Latest Data
Accessed Time:: 2020-03-24 11:12:44.237260
       Province/State Country/Region      Lat      Long     Date  Confirmed  Recovered  Deaths
154             Hubei          China  30.9756  112.2707  1/22/20      444.0       28.0    17.0
158         Guangdong          China  23.3417  113.4244  1/22/20       26.0        0.0     0.0
159             Henan          China  33.8820  113.6140  1/22/20        5.0        0.0     0.0
160          Zhejiang          China  29.1832  120.0934  1/22/20       10.0        0.0     0.0
161             Hunan          China  27.6104  111.7088  1/22/20        4.0        0.0     0.0
...               ...            ...      ...       ...      ...        ...        ...     ...
30749  Inner Mongolia          China  44.0935  113.9448  3/23/20       75.0       74.0     1.0
30750         Ningxia          China  37.2692  106.1655  3/23/20       75.0       75.0     0.0
30754         Qinghai          China  35.7452   95.9956  3/23/20       18.0       18.0     0.0
30755           Macau          China  22.1667  113.5500  3/23/20       24.0       10.0     0.0
30763           Tibet          China  31.6927   88.0924  3/23/20        1.0        1.0     0.0

[2046 rows x 8 columns]

Get/Show Cases By Date

covidcli get date 2020-02-20
Showing 2020-02-20 Cases Worldwide 
Accessed Time::2020-03-25 13:41:46.182374
=============================
Analysing Data:  [####################################]  100%
Showing Case For 2020-02-20
             Confirmed  Recovered  Deaths
cases_dates                              
2020-02-20     76197.0    18177.0  2247.0

Compare Cases of Multiple Countries

covidcli compare China Italy Nigeria US
Comparison of ('China', 'US', 'Italy', 'Nigeria') Affected
Accessed Time::2020-03-25 13:45:34.795250
=============================
                Confirmed  Recovered    Deaths
Country/Region                                
China           3531169.0  1787212.0  119412.0
                Confirmed  Recovered  Deaths
Country/Region                              
US               159039.0      427.0  2276.0
                Confirmed  Recovered   Deaths
Country/Region                               
Italy            497959.0    50954.0  39435.0
                Confirmed  Recovered  Deaths
Country/Region                              
Nigeria             139.0        8.0     0.0

For US States

covidcli get usa Washington
State::Washington
Accessed Time::2020-04-10 00:50:08.332228
=============================
{'Confirmed Cases': 3688, 'Death Cases': 244}

Credits For Data

Fixes and Update

** Added **

  • Comparison Between Countries
  • Get Cases By Date
  • Active Cases

** Fixes **

  • Data Discrepancy

By

  • Jesse E.Agbe(JCharis)
  • Jesus Saves @JCharisTech

NB

  • Contributions Are Welcomed
  • Notice a bug, please let us know.
  • Thanks A lot

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

covidcli-0.1.7.tar.gz (122.9 kB view details)

Uploaded Source

Built Distribution

covidcli-0.1.7-py3-none-any.whl (152.2 kB view details)

Uploaded Python 3

File details

Details for the file covidcli-0.1.7.tar.gz.

File metadata

  • Download URL: covidcli-0.1.7.tar.gz
  • Upload date:
  • Size: 122.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.6.9 Linux/5.3.0-46-generic

File hashes

Hashes for covidcli-0.1.7.tar.gz
Algorithm Hash digest
SHA256 b8ae5f0ecb953f5275cc79f89e670386dc73206c16550f976a97942a698a2cf0
MD5 2ca926f4eda7dbe6c6a890f7da35b916
BLAKE2b-256 935cbeb0ae9df4d94d965267ed1e634e36c1d5754ab5af247c0fd9f3e702392a

See more details on using hashes here.

File details

Details for the file covidcli-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: covidcli-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 152.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.6.9 Linux/5.3.0-46-generic

File hashes

Hashes for covidcli-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c9cfad44c4b0deb96580ef6692d4206fe40d679fe0c4c16b41c17d968b03496b
MD5 4d264e246462e51133e97532caded8f4
BLAKE2b-256 cff0693a90f912cec7543b383602caafb02351489a3b7ce1f701e11dbca4f383

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