Skip to main content

Covid-19 italy report

Project description

Covid-19-Italy

Codacy Badge

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:

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 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


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

covid19it-1.1.0-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page