Getting Started ========================================= Install ----------------- To install corona-python, do: .. code-block:: python :linenos: pip install corona-python or .. code-block:: python :linenos: python -m pip install corona-python Examples ----------------- .. code-block:: python :linenos: from corona_python import Country country = Country("USA") print(country.total_cases()) More examples are provided in the `examples folder `_ Function List ----------------- Country: .. code-block:: python :linenos: last_updated() flag() total_cases() today_cases() total_deaths() today_deaths() recovered() today_recovered() active() critical() cases_per_one_million() deaths_per_one_million() total_tests() tests_per_one_million() population() continent() one_case_per_people() one_death_per_people() one_test_per_people() get_all() World: .. code-block:: python :linenos: last_updated() total_cases() today_cases() total_deaths() today_deaths() recovered() today_recovered() active_cases() critical_cases() cases_per_one_million() deaths_per_one_million() total_tests() population() affected_countries() tests_per_one_million() one_case_per_people() one_death_per_people() one_test_per_people() active_per_million() recovered_per_million() critical_per_million() get_all() More detailed explanations of the functions can be found in `Functions `_ Errors ----------------- The module will raise ``KeyError`` if the given country is invalid If the module doesn't return anything, there might be a problem with the API