# Robert-Koch Institut COVID numbers parser
[![License](https://img.shields.io/github/license/thebino/rki-covid-parser)](./LICENSE.md)
[![Tests](https://github.com/thebino/rki-covid-parser/actions/workflows/testing.yaml/badge.svg)](https://github.com/thebino/rki-covid-parser/actions/workflows/testing.yaml)
[![codecov](https://codecov.io/gh/thebino/rki-covid-parser/branch/development/graph/badge.svg?token=9NUUAMXVP4)](https://codecov.io/gh/thebino/rki-covid-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 |
## Contribution
See [Contribution](https://github.com/thebino/rki-covid-parser/blob/development/CONTRIBUTING.md) for details.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共19个文件
py:8个
txt:4个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:rki-covid-parser-1.2.3.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
rki-covid-parser-1.2.3.tar.gz (19个子文件)
rki-covid-parser-1.2.3
PKG-INFO 3KB
pyproject.toml 404B
LICENSE 11KB
src
rki_covid_parser
const.py 4KB
parser.py 7KB
model
district.py 1KB
state.py 599B
__init__.py 0B
area.py 1KB
country.py 468B
__init__.py 22B
rki_covid_parser.egg-info
PKG-INFO 3KB
requires.txt 140B
not-zip-safe 1B
SOURCES.txt 585B
top_level.txt 17B
dependency_links.txt 1B
setup.cfg 1KB
README.md 2KB
共 19 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 解决windows10下无法安装.net framework 3.5(包括.net2.0和3.0)
- 其他类别Jsp考试系统-jspks.zip
- 基于TypeScript的《榴莲账本》后端项目设计源码
- YFMsSqlHelper(C#)数据库连接帮助类源代码
- HTML5小游戏【奔跑吧兄弟游戏版】游戏源码分享下载 - games.zip
- libusb在Qt for android中的调用
- 可修改或添加标签,最多可添加5个标签
- 解决windows10下无法安装.net framework 3.5(包括.net2.0和3.0)
- (颜色提取器)colorPicker1.0
- sdfgsdfggsdddddddddddddddddd
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功