covid19#

class platypush.plugins.covid19.Covid19Plugin(country: 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: 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: str | List[str] | None = None) List[Dict[str, Any]][source]#

Get all the data for a country.

Parameters:

country – Default country override.

summary(country: str | List[str] | None = None) List[Dict[str, Any]][source]#

Get the summary data for the world or a country.

Parameters:

country – Default country override.