covid19_api.src package¶
Submodules¶
covid19_api.src.api module¶
-
covid19_api.src.api.
get_all_numbers
(resource='/nakazeni-vyleceni-umrti-testy.json') → Tuple[bool, Union[Dict[str, Any], None, str]][source]¶ Returns dict with daily data about infected, cured, died and tests done.
Parameters: resource (str, optional) – API resource string. Defaults to “/nakazeni-vyleceni-umrti-testy.json”. Returns: response_ – status of the resource call, and data
-
covid19_api.src.api.
get_basic_overview
(resource='/zakladni-prehled.json') → Tuple[bool, Union[Dict[str, Any], None, str]][source]¶ Returns dict with summary data about situation in Czech Republic.
Parameters: resource (str, optional) – API resource string. Defaults to “/nakazeni-vyleceni-umrti-testy.json”. Returns: response_ – status of the resource call, and data
-
covid19_api.src.api.
get_cured_overview
(resource='/vyleceni.json') → Tuple[bool, Union[Dict[str, Any], None, str]][source]¶ Returns dict with data about each cured patient.
Parameters: resource (str, optional) – API resource string. Defaults to “/vyleceni.json”. Returns: response_ – status of the resource call, and data
-
covid19_api.src.api.
get_deaths_overview
(resource='/umrti.json') → Tuple[bool, Union[Dict[str, Any], None, str]][source]¶ Returns dict with data about each death of the patients.
Parameters: resource (str, optional) – API resource string. Defaults to “/umrti.json”. Returns: response_ – status of the resource call, and data
-
covid19_api.src.api.
get_epidemiologic_situation_overview
(resource='/kraj-okres-nakazeni-vyleceni-umrti.json') → Tuple[bool, Union[Dict[str, Any], None, str]][source]¶ Returns dict with overview data per each Region Hygienic Authority (KHS).
Parameters: resource (str, optional) – API resource string. Defaults to “/kraj-okres-nakazeni-vyleceni-umrti.json”. Returns: response_ – status of the resource call, and data
-
covid19_api.src.api.
get_infected_overview
(resource='/osoby.json') → Tuple[bool, Union[Dict[str, Any], None, str]][source]¶ Returns dict with data about each confirmed infected person.
Parameters: resource (str, optional) – API resource string. Defaults to “/kraj-okres-nakazeni-vyleceni-umrti.json”. Returns: response_ – status of the resource call, and data
-
covid19_api.src.api.
get_number_of_infected
(resource='/nakaza.json') → Tuple[bool, Union[Dict[str, Any], None, str]][source]¶ Returns dict with data about daily COVID infected people.
Parameters: resource (str, optional) – API resource string. Defaults to “/nakaza.json”. Returns: response_ – status of the resource call, and data
-
covid19_api.src.api.
get_number_of_tests_done
(resource='/testy.json') → Tuple[bool, Union[Dict[str, Any], None, str]][source]¶ Returns dict with data about daily COVID tests done.
Parameters: resource (str, optional) – API resource string. Defaults to “/testy.json”. Returns: response_ – status of the resource call, and data