Covidcli
covidcli : A simple CLI for tracking and getting info about Coronavirus(covid19) Outbreak built with python.
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 statusit 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
Metadata
Release files for covidcli 0.1.7
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 |
|---|---|---|---|---|
| covidcli-0.1.7.tar.gz | 122.9 kB | Without provenance | Details for covidcli-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| covidcli-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for covidcli-0.1.7-py3-none-any.whl |
Total release size: 275.2 kB
Release files / covidcli-0.1.7.tar.gz
| Download URL | covidcli-0.1.7.tar.gz |
|---|---|
| Size | 122.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8ae5f0ecb953f5275cc79f89e670386dc73206c16550f976a97942a698a2cf0
|
|
BLAKE2b-256 checksum How to use checksums |
935cbeb0ae9df4d94d965267ed1e634e36c1d5754ab5af247c0fd9f3e702392a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.6.9 Linux/5.3.0-46-generic
|
Release files / covidcli-0.1.7-py3-none-any.whl
| Download URL | covidcli-0.1.7-py3-none-any.whl |
|---|---|
| Size | 152.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9cfad44c4b0deb96580ef6692d4206fe40d679fe0c4c16b41c17d968b03496b
|
|
BLAKE2b-256 checksum How to use checksums |
cff0693a90f912cec7543b383602caafb02351489a3b7ce1f701e11dbca4f383
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.6.9 Linux/5.3.0-46-generic
|
Security for covidcli 0.1.7
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.