공공데이터 포털 ( [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
File details
Details for the file covid_vaccine_stat-0.0.2.tar.gz
.
File metadata
- Download URL: covid_vaccine_stat-0.0.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6497a02a52799b3d9c5c32fd48f1c0aaa1bbc5293ac9289eeb8d85a251020f32 |
|
MD5 | e957580437a5a85df3fb36c76d250b88 |
|
BLAKE2b-256 | ba8fab2c3645b9327ac88524b5d1fdfa2c12c6da6ead2995fb61ac7286bd26d8 |
File details
Details for the file covid_vaccine_stat-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: covid_vaccine_stat-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ceb30b6b9125fc36d1359152f27ab740bb30db89592ad0dc1d5600975d5a96f |
|
MD5 | 839b9ff7d322f6c26ed00b065b066a05 |
|
BLAKE2b-256 | 675aaf377e8e594db4b3367536ee1bbb3036a53ba332799cddde83405295f5bf |