- Clone this repo.
pip install covid
django-admin startproject 'project_name'
python manage.py migrate
python manage.py runserver
python manage.py startapp 'app_name'
Also available in pypi. github link - (https://github.com/ahmednafies/covid):
pip install covid-data-api
from covid import Covid
covid = Covid()
Get the latest total stats for all confirmed, deaths and recovered till the latest date available.
confirmed = covid.get_total_confirmed_cases()
recovered = covid.get_total_recovered()
deaths = covid.get_total_deaths()
active = covid.get_total_active_cases()
data = covid.get_data()
To find all the countries availabe, plese use show_all_available_countries api.
india_cases = covid.get_status_by_country_name("India")
countries = covid.list_countries()