Skip to main content

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

API documentation

Sphinx autogenerated API docs can be found HERE. Nothing fancy, but gets the job done.

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)

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.5.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

czech_covid19_data_api-1.0.5-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file czech-covid19-data-api-1.0.5.tar.gz.

File metadata

  • Download URL: czech-covid19-data-api-1.0.5.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for czech-covid19-data-api-1.0.5.tar.gz
Algorithm Hash digest
SHA256 b7ed236985729074a8ecc31ac0283b12305acf1563a0dde2149da44c0db839ec
MD5 64e25c7a4ed092ced78c923dd82684b2
BLAKE2b-256 6184e9a8feb9a3736d8c70d760b7b498976000e467369c7e9a62e79c516eff65

See more details on using hashes here.

File details

Details for the file czech_covid19_data_api-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: czech_covid19_data_api-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for czech_covid19_data_api-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c5d72600f4d45cfa4841611cdc8d2b07d5d1fb9f8f39800219536422d9594820
MD5 8774c5cd325211d21188a792c9206278
BLAKE2b-256 1abefd2101e7ba5c476219dbb64ceb2b3cc008a442f973067534d71c226fe236

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page