Skip to main content

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년 데이터 추가

Metadata

Release files for krx-holidays 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for krx-holidays 0.0.3
File Interpreter ABI Platform Actions
krx_holidays-0.0.3-py3-none-any.whl Python 3 none any Details for krx_holidays-0.0.3-py3-none-any.whl

Release files / krx_holidays-0.0.3-py3-none-any.whl

Download URL krx_holidays-0.0.3-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cc84332b3974ac010c9248c9158b15ded5dfff19202d9b80e6f969331e6bd65
BLAKE2b-256 checksum
How to use checksums
78aaa9dec4770d4cd1a113edb3abe62767f5d89e397b27851b22c8142033a3d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.13

Security for krx-holidays 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page