Skip to main content

Japan Holidays

Japanese public holiday lookups for Python 3.9+ using bundled Cabinet Office data.

from datetime import date

from japan_holidays import get_holiday, get_holidays, get_holidays_for_month, is_holiday

for holiday in get_holidays(2026):
    print(holiday.date, holiday.name, holiday.japanese_era_date)
get_holidays(2026, order="desc")

for holiday in get_holidays_for_month(2026, 5):
    print(holiday.date, holiday.name, holiday.japanese_era_date)
get_holidays_for_month(2026, 5, order="desc")

holiday = get_holiday(2026, 11, 23)
if holiday is not None:
    print(holiday.name, holiday.date, holiday.japanese_era_date)
get_holiday(2026, 11, 24)  # None
is_holiday(date(2026, 11, 23))  # True

Year and month listings default to ascending date order and accept order="desc". Daily lookups return a Holiday object. A covered day without a holiday returns None. get_holiday takes a datetime.date or the integer year, month, and day as positional arguments. Arguments of the wrong type, such as a string or a datetime, raise TypeError. Invalid dates, months, orders, and uncovered years raise ValueError.

Holiday objects contain name, date (datetime.date), and japanese_era_date (for example, 令和8年1月1日). Use holiday.date.isoformat() for JSON dates. Era year one is displayed as 元年.

See the documentation and the source repository, and the included NOTICE for the data source and terms.

Metadata

Release files for japan-holidays 1.0.0

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

Source distribution (sdist)

Source distribution for japan-holidays 1.0.0
File Size Uploaded Provenance Actions
japan_holidays-1.0.0.tar.gz 11.5 kB With provenance Details for japan_holidays-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for japan-holidays 1.0.0
File Interpreter ABI Platform Actions
japan_holidays-1.0.0-py3-none-any.whl Python 3 none any Details for japan_holidays-1.0.0-py3-none-any.whl

Total release size: 21.6 kB

Release files / japan_holidays-1.0.0.tar.gz

Download URL japan_holidays-1.0.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a9a867ec4c3067aa59b75192e75562950775e2c48404978f173bfd4b28588c91
BLAKE2b-256 checksum
How to use checksums
7da2ded4673942f47339c841a3e353897808ee8ff30a98d7516194910c22bba6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / japan_holidays-1.0.0-py3-none-any.whl

Download URL japan_holidays-1.0.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fff9f602c2822b6eadc3a7ca9d859c17413de2d1c716ee9a8dddee9366aad598
BLAKE2b-256 checksum
How to use checksums
90bb73494a35e9f7b30d6eb95eb29009996ff97297f60893b1752691eaf000d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for japan-holidays 1.0.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for japan_holidays-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

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