Metadata-Version: 2.1
Name: covid-vaccine-stat
Version: 0.0.1
Summary: 
    공공데이터 포털 ( [data.go.kr](https://www.data.go.kr/) ) 에서 제공하는 코로나19 예방접종 실적 통계 데이터 조회 서비스 API Wrapper
    
Home-page: https://github.com/zeroday0619/covid_vaccine_stat
Author: zeroday0619
License: MIT
Project-URL: Issue tracker, https://github.com/zeroday0619/covid_vaccine_stat/issues
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Natural Language :: Korean
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7.0
Description-Content-Type: text/markdown
Requires-Dist: pydantic (>=1.8.1)
Requires-Dist: ujson (>=4.0.2)
Requires-Dist: aiohttp (>=3.7.4.post0)
Requires-Dist: requests (>=2.25.1)

[코로나 백신 예방 접종 통계 API](https://www.data.go.kr/tcs/dss/selectApiDataDetailView.do?publicDataPk=15077756#/API%20%EB%AA%A9%EB%A1%9D/GETvaccine-stat) Wrapper
=================================================================================
[![test](https://github.com/zeroday0619/covid_vaccine_stat/actions/workflows/test.yml/badge.svg)](https://github.com/zeroday0619/covid_vaccine_stat/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/zeroday0619/covid_vaccine_stat/branch/main/graph/badge.svg)](https://codecov.io/gh/zeroday0619/covid_vaccine_stat)
[![lint](https://github.com/zeroday0619/covid_vaccine_stat/actions/workflows/lint.yml/badge.svg)](https://github.com/zeroday0619/covid_vaccine_stat/actions/workflows/lint.yml)

#### 공공데이터 포털 ( [data.go.kr](https://www.data.go.kr/) ) 에서 제공하는 코로나19 예방접종 실적 통계 데이터 조회 서비스 API Wrapper


## **Usage**

### Install module
```shell
pip install git+https://github.com/zeroday0619/covid_vaccine_stat.git
```

### Example
1. #### Synchronous
```python
import json
from covid_vaccine_stat import sync_request

api_key = "# data.go.kr 에서 발급 받은 API Key #"

res = sync_request.fetch(api_key=api_key)
json_data = json.dumps(
    res.data[0].json(), 
    ensure_ascii=False, 
    escape_forward_slashes=False
)
print(json_data)
```
2. #### Asynchronous
```python
import json
import asyncio
from covid_vaccine_stat import async_request

api_key = "# data.go.kr 에서 발급 받은 API Key #"

loop = asyncio.get_event_loop()
res = loop.run_until_complete(async_request.fetch(api_key=api_key))
json_data = json.dumps(
    res.data[0].json(),
    ensure_ascii=False,
    escape_forward_slashes=False
)
print(json_data)
```

## License
Copyright (c) 2021 Euiseo Cha <zeroday0619@kakao.com>

Distributed under the [**MIT License**](LICENSE)

