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
Metadata
Release files for covid19it 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| covid19it-1.2.0.tar.gz | 3.5 kB | Without provenance | Details for covid19it-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| covid19it-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for covid19it-1.2.0-py3-none-any.whl |
Total release size: 7.2 kB
Release files / covid19it-1.2.0.tar.gz
| Download URL | covid19it-1.2.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98d3944d6aee51c987dd5f621b96a96230034f0ff8e36b38b9d96ffda49b5acf
|
|
BLAKE2b-256 checksum How to use checksums |
063d7ed50e07b0edab34dac0f981c98c98586895f8c728cd81952a377ebaa90b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / covid19it-1.2.0-py3-none-any.whl
| Download URL | covid19it-1.2.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f9421cab9db2d31e73c3544b73e41177af7106c58fec85e0211c7abd6897cd2
|
|
BLAKE2b-256 checksum How to use checksums |
f27feb16061e8db3b15c4ff5ecade67545ba2ed68c9c076abe7594cb40780449
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for covid19it 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.