chinese-calendar
check if some day is holiday in China
Decision gist · record as of 2026-08-14
Yes. The package solves a specific, well-defined problem for any application serving Chinese users or businesses. It has no dependencies, installs instantly, carries a permissive license, and is actively maintained with a clear update cadence tied to official announcements. Install it if you need to check Chinese holidays; skip it if your application has no China-specific calendar logic.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with no runtime dependencies.
- Actively maintained with last commit on 2026-06-06 and a recent release on 2025-11-04; updates typically follow official State Council holiday announcements around November each year.
License · maintenance · safety
MIT License (permissive) — MIT License permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you retain the license notice.
last release 2025-11-04 (283 days) · last repo commit 2026-06-06 · 1,366 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 85,092 downloads/mo, #13,951 on PyPI
Alternatives
Verify before relying
import datetime
from chinese_calendar import is_holiday, is_workday, get_holiday_detail
date = datetime.date(2018, 4, 30)
print(is_holiday(date)) # True
print(is_workday(date)) # False
on_holiday, name = get_holiday_detail(date)- Whether the package handles leap seconds or other edge cases in date arithmetic.
- Exact behavior when querying dates outside the 2004–2026 range.
- Performance characteristics for bulk queries across many dates.
What it is and what it does
chinese-calendar is a Python library that answers a single, practical question: is a given date a working day or a holiday in China? It encodes the official holiday schedules published by China's State Council, covering 2004 through 2026, and includes special handling for adjustments like the 2020 Spring Festival extension. The library provides three main functions: checking if a date is a holiday or workday, retrieving the holiday name when applicable, and identifying whether a holiday falls on a makeup workday (调休).
The package has no external runtime dependencies and installs as a pure Python wheel. It is actively maintained and typically receives updates around November each year to incorporate the next year's official holiday schedule. With 1366 GitHub stars, it serves developers building Chinese business applications, scheduling systems, and calendar tools that need to respect China's official working calendar.
Use it for
- Validate whether a date is a working day in China for payroll, leave-tracking, or HR systems.
- Build a calendar UI that highlights Chinese holidays and makeup workdays for end users.
- Filter or exclude holidays from business logic in financial or trading applications operating in China.
- Generate reports or analytics that account for China's official holiday schedule.
- Implement scheduling or availability systems that respect Chinese working days.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package solves a specific, well-defined problem for any application serving Chinese users or businesses. It has no dependencies, installs instantly, carries a permissive license, and is actively maintained with a clear update cadence tied to official announcements. Install it if you need to check Chinese holidays; skip it if your application has no China-specific calendar logic.
Install
chinese-calendar on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Actively maintained with last commit on 2026-06-06 and a recent release on 2025-11-04; updates typically follow official State Council holiday announcements around November each year.
License in practice
MIT License permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you retain the license notice.
Quickstart
import datetime
from chinese_calendar import is_holiday, is_workday, get_holiday_detail
date = datetime.date(2018, 4, 30)
print(is_holiday(date)) # True
print(is_workday(date)) # False
on_holiday, name = get_holiday_detail(date)
Verify before relying
- Whether the package handles leap seconds or other edge cases in date arithmetic.
- Exact behavior when querying dates outside the 2004–2026 range.
- Performance characteristics for bulk queries across many dates.
Package facts
| License | MIT License permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 283 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 85,092 / month, #13,951 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: chinese_calendar-1.11.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “chinese holiday calendar”
- chinese-calendarDetermines whether a specific date in China is a working day or…
- zhdateConverts between Chinese lunar calendar dates and Gregorian datetime…
- lunardateConverts between Gregorian (solar) and Chinese (lunar) calendar…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also jpholiday · workalendar · lunardate · LunarCalendar · holidays · zhdate · convertdate · datetime-quarter · businesstimedelta · pandas_market_calendars