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 |
float | Week incidence |
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 |
hospitalizationCasesMerged |
float | Hospitalization cases for people in germany summarized |
hospitalizationIncidenceMerged |
float | Hospitalization incidence for people in germany summarized |
hospitalizationCasesBaby |
float | Hospitalization cases for people between 00-04 |
hospitalizationIncidenceBaby |
float | Hospitalization incidence for people between 00-04 |
hospitalizationCasesChildren |
float | Hospitalization cases for people between 05-14 |
hospitalizationIncidenceChildren |
float | Hospitalization incidence for people between 05-14 |
hospitalizationCasesTeen |
float | Hospitalization cases for people between 15-34 |
hospitalizationIncidenceTeen |
float | Hospitalization incidence for people between 15-34 |
hospitalizationCasesGrown |
float | Hospitalization cases for people between 35-59 |
hospitalizationIncidenceGrown |
float | Hospitalization incidence for people between 35-59 |
hospitalizationCasesSenior |
float | Hospitalization cases for people between 60-79 |
hospitalizationIncidenceSenior |
float | Hospitalization incidence for people between 60-79 |
hospitalizationCasesOld |
float | Hospitalization cases for people older than 80 |
hospitalizationIncidenceOld |
float | Hospitalization incidence for people older than 80 |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rki-covid-parser-1.3.3.tar.gz.
File metadata
- Download URL: rki-covid-parser-1.3.3.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a01ac1c349866499b1cb013eaa92053e3f95112ce25648988a19301c8279a02
|
|
| MD5 |
1e347e79fa5646fdbc5714bf5683056c
|
|
| BLAKE2b-256 |
279642a86e201db3f03e27bdf19b03ec982c293caa83032ca3f0d67b571ca5b8
|
File details
Details for the file rki_covid_parser-1.3.3-py2.py3-none-any.whl.
File metadata
- Download URL: rki_covid_parser-1.3.3-py2.py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
070a3733e2d6445ec2513fa445fc0052d568ae0d0de68ebbe44eeab0e99f847f
|
|
| MD5 |
336ee7344cf8387401692d1f12424e76
|
|
| BLAKE2b-256 |
cbb296172868e2159c00051e821bc2a9571af4ffc8bac86bbb516c2589adb138
|