Covid-19 italy report
Project description
Covid-19-Italy
A python Class that provide you all the latest informations about COVID-19 from "protezione civile" (https://github.com/pcm-dpc/COVID-19)
Install
pip install covid19it
Dependencies
requests
json
How to use
Import the Class:
from covid19it import covid19
c = covid19.Covid()
Here the list of class arguments:
# Variazione rispetto al giorno precedente
c.nuovi_deceduti
c.nuovi_guariti
c.nuovi_tamponi
c.nuovi_positivi
# Incremento percentuale
c.incremento_p_contagiati
c.incremento_p_deceduti
c.incremento_p_tamponi
c.incremento_p_guariti
# Rapporto tamponi-positivi
c.rapp_tamponi_positivi
# Others
c.stato
c.ricoverati_con_sintomi
c.terapia_intensiva
c.totale_ospedalizzati
c.isolamento_domiciliare
c.totale_positivi
c.variazione_totale_positivi
c.nuovi_positivi
c.dimessi_guariti
c.deceduti
c.nuovi_deceduti
c.casi_da_sospetto_diagnostico
c.casi_da_screening
c.totale_casi
c.tamponi
c.casi_testati
c.note
Here the list of class functions:
c.get_media_settimanale()
c.get_media_mensile()
c.getSmallReport()
c.getFullReport()
getSmallReport() will provide you some minimal but important information about latest Covid19 news (from Italy)
getFullReport() will provide you all the latest available information about Covid19 (from Italy)
get_media_settimanale() will provide you last 7 days numbers
get_media_mensile() will provide you last 30 days numbers
Example code
Source
from covid19it import covid19
c = covid19.Covid()
print(c.getSmallReport())
Output
Totale positivi: 21932
Nuovi positivi: 1411
Guariti: 206554
Deceduti: 35463
Nuovi Deceduti: 5
Tamponi: 8313445
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 covid19it-1.2.0.tar.gz.
File metadata
- Download URL: covid19it-1.2.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98d3944d6aee51c987dd5f621b96a96230034f0ff8e36b38b9d96ffda49b5acf
|
|
| MD5 |
26f50b1955bea43f338fe6492ef9bfb9
|
|
| BLAKE2b-256 |
063d7ed50e07b0edab34dac0f981c98c98586895f8c728cd81952a377ebaa90b
|
File details
Details for the file covid19it-1.2.0-py3-none-any.whl.
File metadata
- Download URL: covid19it-1.2.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f9421cab9db2d31e73c3544b73e41177af7106c58fec85e0211c7abd6897cd2
|
|
| MD5 |
acf75fb303aa5d34b73ea6c81b5ca0b5
|
|
| BLAKE2b-256 |
f27feb16061e8db3b15c4ff5ecade67545ba2ed68c9c076abe7594cb40780449
|