Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/realeroberto/covid19umbria
Covid-19 statistics for Regione Umbria, based on the public API.
https://github.com/realeroberto/covid19umbria
api-client covid-19 italy
Last synced: 13 days ago
JSON representation
Covid-19 statistics for Regione Umbria, based on the public API.
- Host: GitHub
- URL: https://github.com/realeroberto/covid19umbria
- Owner: realeroberto
- License: mit
- Created: 2020-04-19T11:57:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-24T23:29:05.000Z (about 4 years ago)
- Last Synced: 2024-12-18T12:18:39.892Z (about 2 months ago)
- Topics: api-client, covid-19, italy
- Language: Jupyter Notebook
- Homepage: https://pypi.org/project/covid19umbria/
- Size: 26.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Covid19Umbria
![PyPI](https://img.shields.io/pypi/v/covid19umbria)
Covid-19 statistics for Regione Umbria, based on the [public API](https://apistore.regione.umbria.it/store/apis/info?name=COVID-19&version=1.0.0&provider=admin&tag=Agenda%20digitale-group).
Cf. also the [Dashboard COVID-19 Regione Umbria](https://github.com/Regione-Umbria/coronavirus).
Partially inspired by the [covid](https://github.com/ahmednafies/covid) package.
## Installation
pip install covid19umbria
## Usage
See the [example](example.py).
A Jupyter Notebook is available through [Google Colab](https://colab.research.google.com/drive/1BvRTHkzfC831B1jWThE_tFOv3hRuitRh?usp=sharing).
### Get All Data
```python
from covid19umbria import Covid19Umbriacovid19 = Covid19Umbria()
covid19.get_data()
```### Get Currently Active cases
```python
current_active = covid19.get_current_active_cases()
```### Get Total Confirmed cases
```python
new_active = covid19.get_total_confirmed_cases()
```### Get Total Recovered cases
```python
recovered = covid19.get_total_recovered()
```### Get Total Deaths
```python
deaths = covid19.get_total_deaths()
```