czech-covid19-data-api


Nameczech-covid19-data-api JSON
Version 1.0.5 PyPI version JSON
download
home_pagehttps://github.com/radekBednarik/czech-covid19-data-api
Summary
upload_time2020-10-18 06:40:14
maintainer
docs_urlNone
authorRadek 'bednaJedna' Bednarik
requires_python>=3.6
license
keywords covid19 covid data czech czechia public api wrapper python python3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # czech-covid19-data-api
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/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](https://www.sphinx-doc.org/en/master/index.html) autogenerated API docs can be found [HERE](https://czech-covid19-data-api.readthedocs.io/en/latest/index.html). 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)
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/radekBednarik/czech-covid19-data-api",
    "name": "czech-covid19-data-api",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "covid19 covid data czech Czechia public api wrapper python python3",
    "author": "Radek 'bednaJedna' Bednarik",
    "author_email": "bednarik.radek@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/61/84/e9a8feb9a3736d8c70d760b7b498976000e467369c7e9a62e79c516eff65/czech-covid19-data-api-1.0.5.tar.gz",
    "platform": "",
    "description": "# czech-covid19-data-api\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nAPI wrapper for official covid19 data. Written in Python. Data source https://onemocneni-aktualne.mzcr.cz/api/v2/covid-19. \n\n## Installation\nJust use:\n```\npip install czech-covid19-data-api\n```\n\n## API documentation\n[Sphinx](https://www.sphinx-doc.org/en/master/index.html) autogenerated API docs can be found [HERE](https://czech-covid19-data-api.readthedocs.io/en/latest/index.html). Nothing fancy, but gets the job done.\n\n## How to use\n\nExample 1: Get data in JSON format:\n\n```\nfrom covid19_api.src import api\n\nif __name__ == \"__main__\":\n    (status, data) = api.get_deaths_overview()\n\n    if status:\n        print(data)\n```\n\nExample 2: Get data in CSV format:\n\n```\nfrom covid19_api.src import api\n\nif __name__ == \"__main__\":\n    (status, data) = api.get_deaths_overview(resource=\"/umrti.csv\")\n\n    if status:\n        print(data)\n```\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "",
    "version": "1.0.5",
    "split_keywords": [
        "covid19",
        "covid",
        "data",
        "czech",
        "czechia",
        "public",
        "api",
        "wrapper",
        "python",
        "python3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "8774c5cd325211d21188a792c9206278",
                "sha256": "c5d72600f4d45cfa4841611cdc8d2b07d5d1fb9f8f39800219536422d9594820"
            },
            "downloads": -1,
            "filename": "czech_covid19_data_api-1.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8774c5cd325211d21188a792c9206278",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3208,
            "upload_time": "2020-10-18T06:40:13",
            "upload_time_iso_8601": "2020-10-18T06:40:13.248164Z",
            "url": "https://files.pythonhosted.org/packages/1a/be/fd2101e7ba5c476219dbb64ceb2b3cc008a442f973067534d71c226fe236/czech_covid19_data_api-1.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "64e25c7a4ed092ced78c923dd82684b2",
                "sha256": "b7ed236985729074a8ecc31ac0283b12305acf1563a0dde2149da44c0db839ec"
            },
            "downloads": -1,
            "filename": "czech-covid19-data-api-1.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "64e25c7a4ed092ced78c923dd82684b2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3205,
            "upload_time": "2020-10-18T06:40:14",
            "upload_time_iso_8601": "2020-10-18T06:40:14.093575Z",
            "url": "https://files.pythonhosted.org/packages/61/84/e9a8feb9a3736d8c70d760b7b498976000e467369c7e9a62e79c516eff65/czech-covid19-data-api-1.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-10-18 06:40:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "radekBednarik",
    "error": "Could not fetch GitHub repository",
    "lcname": "czech-covid19-data-api"
}
        
Elapsed time: 0.19155s