공공데이터 포털 ( [data.go.kr](https://www.data.go.kr/) ) 에서 제공하는 코로나19 예방접종 실적 통계 데이터 조회 서비스 API Wrapper
Project description
코로나 백신 예방 접종 통계 API Wrapper
공공데이터 포털 ( data.go.kr ) 에서 제공하는 코로나19 예방접종 실적 통계 데이터 조회 서비스 API Wrapper
Usage
Install module
pip install covid-vaccine-stat
or
pip install git+https://github.com/zeroday0619/covid_vaccine_stat.git
Example
-
Synchronous
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)
-
Asynchronous
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for covid_vaccine_stat-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ceb30b6b9125fc36d1359152f27ab740bb30db89592ad0dc1d5600975d5a96f |
|
MD5 | 839b9ff7d322f6c26ed00b065b066a05 |
|
BLAKE2b-256 | 675aaf377e8e594db4b3367536ee1bbb3036a53ba332799cddde83405295f5bf |