Skip to main content

No project description provided

Project description

czech-covid19-data-api

Code style: black

API wrapper for official covid19 data. Written in Python. Data source https://onemocneni-aktualne.mzcr.cz/api/v2/covid-19.

Installation

Just use:

pip install czech-covid19-data-api

How to use

Example 1: Get data in JSON format:

from covid19_api.src import api

if __name__ == "__main__":
    (status, data) = api.get_deaths_overview()

    if status:
        print(data)

Example 2: Get data in CSV format:

from covid19_api.src import api

if __name__ == "__main__":
    (status, data) = api.get_deaths_overview(resource="/umrti.csv")

    if status:
        print(data)

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

czech-covid19-data-api-1.0.1.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

czech_covid19_data_api-1.0.1-py3-none-any.whl (1.7 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