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

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)

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

Uploaded Source

Built Distribution

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.

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