Skip to main content

Python module for getting data from covid19.go.id

Project description

covid19-id

covid19-id - PyPi Supported Python versions LICENSE

Python module for getting data from covid19.go.id Modul python untuk mengambil data dari covid19.go.id

Install

You can install or upgrade covid19-id with:

pip install covid19-id --upgrade

Optional Dependencies

covid19-id can be installed with optional ujson dependency.

pip install covid19-id[ujson]`.

It will then be used for JSON decoding, which can bring speed up compared to the standard json library.

Example

import covid19_id

all_update = covid19_id.get_update()

total = all_update.update.total

print(f"covid19; positive cases in Indonesia : {total.jumlah_positif}")
print(f"covid19; patients treated in Indonesia {total.jumlah_dirawat}")
print(f"covid19; patients recovered in Indonesia {total.jumlah_sembuh}")
print(f"covid19; patients died in Indonesia {total.jumlah_meninggal}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

covid19-id-0.2.0.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

covid19_id-0.2.0-py3-none-any.whl (6.5 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