Command Line Interface for retrieving CoViD-19 related informations.
Corona Updates
can be run in two ways:
- From Your code
- From Command Line Interface
from coronaupdates import Covid19
cov = Covid19()
# Run the Command Line Interface from your code
cov.parse_args_from_user()
# Create the CSV of corona updates of real time.
cov.create_csv(geography_type='country', filepath='/path/to/save/')
usage: coronaupdates [-h] [--show category] [--country country]
[--downloadcsv filepath]
Command Line Interface for Corona Virus (CoViD-19) Informations.
optional arguments:
-h, --help show this help message and exit
--show category, -s category
Shows the info by category
--country country, -c country
Shows the info by country.
--downloadcsv filepath, -d filepath
Downloads the CSV file containing CoViD-19 updates of
current time.
└> $ coronaupdates -s confirmed
Total Cases : 1,700,378 WORLDWIDE
└> $ coronaupdates -s confirmed -c usa
Total Cases : 502,876 in USA
└></code></pre>
<pre class=" language-sh"><code class="prism language-sh"> └> $ coronaupdates -s confirmed
Total Cases : 1,700,378 WORLDW $ coronaupdates -c usa
+--------------------+-----------+
| country | USA |
| total_cases | 502,876 |
| total_deaths | 18,747 |
| total_recovered | 27,314 |
| active_cases | 456,815 |
| critical_cases | 10,917 |
| cases_per_million | 1,519 |
| deaths_per_million | 57 |
| total_test | 2,538,888 |
| tests_per_million | 7,670 |
+--------------------+-----------+
Distributed under the MIT license. See LICENSE
for more information.
https://github.com/thearjun/coronaupdates/blob/master/LICENSE.txt
- Fork it (https://github.com/thearjun/coronavirus/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request