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