covid19

class platypush.plugins.covid19.Covid19Plugin(country: Union[str, List[str]] = 'world', **kwargs)[source]

Bases: Plugin

Monitor the diffusion data of the COVID-19 pandemic by using the public API at https://api.covid19api.com.

__init__(country: Union[str, List[str]] = 'world', **kwargs)[source]
Parameters:

country

Default country (or list of countries) to retrieve the stats for. It can either be the full country name or the country code. Special values:

  • world: Get worldwide stats (default).

  • all: Get all the available stats.

data(country: Optional[Union[str, List[str]]] = None) List[Dict[str, Any]][source]

Get all the data for a country.

Parameters:

country – Default country override.

summary(country: Optional[Union[str, List[str]]] = None) List[Dict[str, Any]][source]

Get the summary data for the world or a country.

Parameters:

country – Default country override.