A simple rki covid numbers parser
Project description
Robert-Koch Institut COVID numbers parser
Python parser for the latest covid numbers from German RKI (Robert-Koch Institut).
Installation
pip install rki-covid-parser
Usage
Initialize the parser with an aiohttp.session
and load the latest data.
parser = RkiCovidParser(session)
await parser.load_data()
for district in parser.districts:
# work with districts
pass
for state in parser.states:
# work with states
pass
# work with the country
parser.country.cases
finished loading data, the parser contains a dictionary of districts, each with these properties:
Property | Type | Description |
---|---|---|
id |
string | Unique district identifier |
name |
string | Name of the district |
county |
string | County of the district |
state |
string | State of the district |
population |
integer | Population |
cases |
integer | Active cases |
deaths |
integer | Currently tracked deaths |
casesPerWeek |
integer | Cases per week |
deathsPerWeek |
integer | Deaths per week |
recovered |
integer | Recovered cases |
weekIncidence |
integer | Week incedence |
casesPer100k |
float | Cases per 100k population |
newCases |
integer | New cases since last day |
newDeaths |
integer | New deaths since last day |
newRecovered |
integer | New recovered since last day |
last_update |
string | Timestamp of the last update |
Contribution
See Contribution for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rki-covid-parser-1.0.0.tar.gz
(9.6 kB
view hashes)
Built Distribution
Close
Hashes for rki_covid_parser-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dda0a53c9d87025ae90fb4f5e810c9a2cdff9d9fa492c3c312ce0c37c796ae2b |
|
MD5 | d0d7f1ea00a107f40c2e3df816a172d8 |
|
BLAKE2b-256 | e921b63d77c5f53b6456b5b06bc343d94fe075a8f2dcd0238c12baa02d847cec |