Giter VIP home page Giter VIP logo

covid_vaccine_stat's Introduction

Upload Python Package test lint codecov CodeFactor

공공데이터 포털 ( 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

  1. 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)
  1. 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 [email protected]

Distributed under the MIT License

covid_vaccine_stat's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

seonghyeon-kim

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.