holidays
Open World Holidays Framework
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a common real-world problem—determining holidays across countries and subdivisions. It is well-suited for financial, scheduling, and business applications. The MIT license places no restrictions on use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction installation with a single lightweight runtime dependency (python-dateutil).
- Active maintenance with recent releases; last commit 2026-08-13.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in commercial and private projects.
last release 2026-08-03 (11 days) · last repo commit 2026-08-13 · 1,916 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 30,660,848 downloads/mo, #795 on PyPI
Alternatives
Verify before relying
pip install holidays
from datetime import date
import holidays
us_holidays = holidays.US()
date(2015, 1, 1) in us_holidays # True
us_holidays.get('2015-01-01') # "New Year's Day"- Whether the dict-like interface supports all standard Python dict operations beyond membership testing and get().
- Performance characteristics when querying large date ranges or generating calendars for multiple years.
- Accuracy and completeness of holiday data across all 250 supported country codes.
What it is and what it does
Holidays is a Python library that builds government holiday calendars for countries and their subdivisions (states, provinces, etc.) on demand. It exposes these calendars as dict-like objects, letting you check whether a specific date is a holiday, retrieve the holiday name, or iterate over holidays in a date range. The library supports 250 country codes following ISO 3166-1 standards, optional language localization via ISO 639-1 codes, and additional holiday categories (bank holidays, school holidays, religious holidays) where applicable.
The package depends only on python-dateutil and is designed for speed and flexibility. It recognizes dates in multiple formats (date objects, ISO strings, Unix timestamps) and handles subdivision-specific holidays—for example, distinguishing between US federal holidays and Puerto Rico-specific observances. The library is widely used in financial systems, scheduling applications, and any context where knowing whether a date is a business day matters.
Use it for
- Check whether a specific date is a government holiday in a given country before scheduling business operations.
- Build financial trading calendars that exclude market holidays for a specific exchange or country.
- Generate localized holiday calendars for payroll, HR, or scheduling systems serving multiple regions.
- Filter out holidays when calculating business days or delivery timelines in e-commerce or logistics.
- Export holiday calendars as .ics files for integration with calendar applications.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a common real-world problem—determining holidays across countries and subdivisions. It is well-suited for financial, scheduling, and business applications. The MIT license places no restrictions on use.
Install
holidays on PyPI
Before you install
Low friction installation with a single lightweight runtime dependency (python-dateutil). Active maintenance with recent releases; last commit 2026-08-13.
Requires Python 3.10 or later.
License in practice
MIT license permits unrestricted use, modification, and distribution in commercial and private projects.
Quickstart
pip install holidays
from datetime import date
import holidays
us_holidays = holidays.US()
date(2015, 1, 1) in us_holidays # True
us_holidays.get('2015-01-01') # "New Year's Day"
Verify before relying
- Whether the dict-like interface supports all standard Python dict operations beyond membership testing and get().
- Performance characteristics when querying large date ranges or generating calendars for multiple years.
- Accuracy and completeness of holiday data across all 250 supported country codes.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepython-dateutil |
| Maintenance | Actively maintained 11 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 30,660,848 / month, #795 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: End Users/DesktopIntended Audience :: Financial and Insurance IndustryIntended Audience :: Information TechnologyOperating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonTopic :: File Formats :: JSONTopic :: Office/Business :: Financial :: AccountingTopic :: Office/Business :: Financial :: InvestmentTopic :: Office/Business :: SchedulingTopic :: Software Development :: Libraries :: Python Modules |
Evidence: holidays-0.102-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 › “country holiday calendar”
- holidaysGenerates country- and subdivision-specific government holiday…
- workalendarWorkalendar provides holiday calendars and working-day calculations…
- chinese-calendarDetermines whether a specific date in China is a working day or…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules 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.
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.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also govuk-bank-holidays · workalendar · jpholiday · semantic-link-functions-holidays · chinese-calendar · exchange_calendars · pycountry · countryinfo · workadays · businesstimedelta