czech-covid19-data-api-1.0.5
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | czech-covid19-data-api-1.0.5 |
| نام | czech-covid19-data-api |
| نسخه کتابخانه | 1.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Radek 'bednaJedna' Bednarik |
| ایمیل نویسنده | bednarik.radek@gmail.com |
| آدرس صفحه اصلی | https://github.com/radekBednarik/czech-covid19-data-api |
| آدرس اینترنتی | https://pypi.org/project/czech-covid19-data-api/ |
| مجوز | - |
# czech-covid19-data-api
[](https://github.com/psf/black)
API wrapper for official covid19 data. Written in Python. Data source https://onemocneni-aktualne.mzcr.cz/api/v2/covid-19.
## Installation
Just use:
```
pip install czech-covid19-data-api
```
## API documentation
[Sphinx](https://www.sphinx-doc.org/en/master/index.html) autogenerated API docs can be found [HERE](https://czech-covid19-data-api.readthedocs.io/en/latest/index.html). Nothing fancy, but gets the job done.
## How to use
Example 1: Get data in JSON format:
```
from covid19_api.src import api
if __name__ == "__main__":
(status, data) = api.get_deaths_overview()
if status:
print(data)
```
Example 2: Get data in CSV format:
```
from covid19_api.src import api
if __name__ == "__main__":
(status, data) = api.get_deaths_overview(resource="/umrti.csv")
if status:
print(data)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl czech-covid19-data-api-1.0.5:
pip install czech-covid19-data-api-1.0.5.whl
نصب پکیج tar.gz czech-covid19-data-api-1.0.5:
pip install czech-covid19-data-api-1.0.5.tar.gz