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 covid19 import Covid
c = Covid()
Here the list of class arguments:
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.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)
Example code
Source
from covid19 import Covid
c = 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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for covid19it-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5c21acc2bb0f12c51c1a206e07ecf1275db6cf40133e5d5a0dc60c01659dbc2 |
|
MD5 | f465ac11ef6820435e79715d1b1b11fb |
|
BLAKE2b-256 | 6c070685a5f4c7cd0cea84dbaba688f28909dba6cd6f1e4a7dfecedb820a6ac6 |