Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radekbednarik/czech-covid19-data-api
api wrapper for official covid19 data. Written in Python. Data source https://onemocneni-aktualne.mzcr.cz/api/v2/covid-19.
https://github.com/radekbednarik/czech-covid19-data-api
api api-wrapper covid czech python
Last synced: 16 days ago
JSON representation
api wrapper for official covid19 data. Written in Python. Data source https://onemocneni-aktualne.mzcr.cz/api/v2/covid-19.
- Host: GitHub
- URL: https://github.com/radekbednarik/czech-covid19-data-api
- Owner: radekBednarik
- Created: 2020-10-15T12:08:20.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-18T06:39:46.000Z (about 4 years ago)
- Last Synced: 2024-12-14T13:17:29.239Z (20 days ago)
- Topics: api, api-wrapper, covid, czech, python
- Language: Python
- Homepage:
- Size: 235 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# czech-covid19-data-api
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](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 apiif __name__ == "__main__":
(status, data) = api.get_deaths_overview()if status:
print(data)
```Example 2: Get data in CSV format:
```
from covid19_api.src import apiif __name__ == "__main__":
(status, data) = api.get_deaths_overview(resource="/umrti.csv")if status:
print(data)
```