Skip to content

Files

Latest commit

d734257 ยท Jan 28, 2022

History

History
167 lines (135 loc) ยท 3.5 KB

README.md

File metadata and controls

167 lines (135 loc) ยท 3.5 KB

์‚ฌ์žฅ๋‹˜์šฉ QR์ฒดํฌ์ธ, ์ „์ž์ถœ์ž…๋ช…๋ถ€๋ฅผ ์œ„ํ•œ ํŒŒ์ด์ฌ API Wrapper
QR์ฒดํฌ์ธ๋„ ํ• ์ˆ˜ ์žˆ์–ด์š”!


repo license pypi

QR์ฒดํฌ์ธ API๋ฅผ ์ด์šฉํ•œ ํ˜„ ์‹œ๊ฐ ๊ธฐ์ค€ ์†๋‹˜์ˆ˜ ์˜ˆ์ธก ์˜ค๋ฒ„๋ ˆ์ด

ํ˜„์žฌ์‹œ๊ฐ ๊ธฐ์ค€ ์†๋‹˜์ˆ˜ / ์ง€๋‚œ ๋ฐ์ดํ„ฐ ๊ธฐ์ค€ ์˜ˆ์ธก ์†๋‹˜์ˆ˜
Customer pass overlay

QR์ฒดํฌ์ธ API๋ฅผ ์ด์šฉํ•œ ํŠน์ • ๊ฐ€๊ณ„์˜ ์†๋‹˜ ์ˆ˜ ํ†ต๊ณ„

์š”์ผ๋ณ„ ์†๋‹˜์ˆ˜
Customer pass by weekday
์‹œ๊ฐ„๋Œ€๋ณ„ ์†๋‹˜์ˆ˜
Customer pass by time

Legal Disclaimer

์„œ๋น„์Šค์— ๋ฌด๋ฆฌ๊ฐ€ ๊ฐˆ์ •๋„๋กœ ์š”์ฒญํ•˜์ง€ ๋งˆ์„ธ์š”. Do not send request over a short span.

๋น„์ƒ์—…์  ์šฉ๋„๋งŒ ์‚ฌ์šฉ ๊ฐ€๋Šฅ. ์˜ค์ง ๊ต์œก์  ๋ชฉ์ ์œผ๋กœ๋งŒ ์‚ฌ์šฉํ• ์ˆ˜ ์žˆ์œผ๋ฉฐ, ์ „์ž์ถœ์ž…๋ช…๋ถ€(KIPass)๋Š” ์งˆ๋ณ‘๊ด€๋ฆฌ์ฒญ์˜ ์ž์‚ฐ์ž…๋‹ˆ๋‹ค. ์•…์˜์  ๊ณต๊ฒฉ์— ์ด์šฉํ• ์‹œ ์ฒ˜๋ฒŒ ๋ฐ›์„์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ์— ๋”ฐ๋ฅธ ์ฑ…์ž„์€ ์‚ฌ์šฉ์ž๊ฐ€ ์ง‘๋‹ˆ๋‹ค.

Non Commercial Only. Only use for educational purposes, KIPass is asset of MOHW. User takes responsibility for usage.

Install

pip install PyKIPass

Using

Import

> from PyKIPass import *

Login

> kipass = KIPass(username="USERNAME", password="PASSWORD")

Security Considerations

์•„์ด๋””, ๋น„๋ฐ€๋ฒˆํ˜ธ๋Š” ํ™˜๊ฒฝ๋ณ€์ˆ˜๋ฅผ ์ด์šฉํ•ด ์ €์žฅํ•˜๋Š”๊ฒƒ์ด ๋ณด์•ˆ์ƒ ์ข‹์Šต๋‹ˆ๋‹ค.

> import os
> kipass = KIPass(username=os.environ.get("KI_PASS_ID"), password=os.environ.get("KI_PASS_PASSWORD"))

ํŠน์ • ๋‚ ์งœ์˜ ๊ณ ๊ฐ์ˆ˜ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

> kipass.get_customer_count_on_day(date="20220107")
CustomerCountOnDay()

2์ฃผ๊ฐ„ ๊ธฐ๊ฐ„์˜ ๊ณ ๊ฐ์ˆ˜ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

> kipass.get_customer_count_on_two_week(start_date="20211219", end_date="20220102")
CustomerCountOnTwoWeek[]

QR์ฝ”๋“œ ์ธ์ฆํ•˜๊ธฐ

> kipass.verify_qr(parsed_qr_code="....")
VerifyQR

Examples

Graphing

Overlay

Objects

User

> kipass.user.[parameter]
  • boss_name
  • is_enabled
  • address_detail
  • is_transferred
  • is_async
  • version
  • is_boss
  • biz_no_count
  • authed_phone_number
  • phone_number
  • business_register_number
  • username
  • os_type
  • business_name
  • new_terms_yn
  • name
  • str_use_yn
  • process_type
  • business_id
  • address
  • uuid
  • business_type

CustomerCountOnDay

  • total_customer_count
  • vaccinated_customer_count
  • fully_vaccinated_customer_count
  • dates
  • time

CustomerCountOnTwoWeek

  • total_customer_count
  • vaccinated_customer_count
  • fully_vaccinated_customer_count
  • dates

VerifyQR

  • voice
  • msg
  • vaccine_type
  • vaccine_code
  • background_color
  • success