KRX Holidays
Project description
python : 3.6+
KRX Holiday util
KRX 사이트에서 xls 파일 다운로드후 data 디렉토리에 넣고 gen_code.py 실행해서 data.py 파일 생성
대한민국 공휴일 데이터는 2018년 데이터부터 있음 주의
Installation
pip install krx-holidays==0.0.3
Usage
from datetime import datetime
from krxholidays import is_holiday_str, get_day_info, is_holiday
print(is_holiday(datetime(2021, 1, 1))) # True
dinfo = get_day_info(datetime(2021, 1, 4))
print(dinfo["desc"]) # "평일"
print(dinfo["week_name"]) # "월요일"
print(dinfo["is_holiday"]) # False
Version History
0.0.3 (2024-07-06)
2024-07-06 일 기준 공휴일 업데이트
2028년 데이터 추가
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for krx_holidays-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cc84332b3974ac010c9248c9158b15ded5dfff19202d9b80e6f969331e6bd65 |
|
MD5 | 5b63d0dadfcd4d5f6e6e3b137062c8e3 |
|
BLAKE2b-256 | 78aaa9dec4770d4cd1a113edb3abe62767f5d89e397b27851b22c8142033a3d1 |