Skip to main content

Calculate the Japanese holidays since 1948.

Project description

holidays-jp is a library for calculate holidays. Mainly it has been optimized to Japanese.

It can be used in standalone and does not depend on Google calendar.

Usage:

from holidays_jp import CountryHolidays
# get japanese holidays in 2015.
holidays = CountryHolidays.get('JP', 2015)
# [
#     (datetime.datetime(2015, 1, 1, 0, 0), '元日'),
#     (datetime.datetime(2015, 1, 12, 0, 0), '成人の日'),
#     (datetime.datetime(2015, 2, 11, 0, 0), '建国記念の日'),
#     (datetime.datetime(2015, 3, 21, 0, 0), '春分の日'),
#     (datetime.datetime(2015, 4, 29, 0, 0), '昭和の日'),
#     (datetime.datetime(2015, 5, 3, 0, 0), '憲法記念日'),
#     (datetime.datetime(2015, 5, 4, 0, 0), 'みどりの日'),
#     (datetime.datetime(2015, 5, 5, 0, 0), 'こどもの日'),
#     (datetime.datetime(2015, 5, 6, 0, 0), '振替休日'),
#     (datetime.datetime(2015, 7, 20, 0, 0), '海の日'),
#     (datetime.datetime(2015, 9, 21, 0, 0), '敬老の日'),
#     (datetime.datetime(2015, 9, 22, 0, 0), '国民の休日'),
#     (datetime.datetime(2015, 9, 23, 0, 0), '秋分の日'),
#     (datetime.datetime(2015, 10, 12, 0, 0), '体育の日'),
#     (datetime.datetime(2015, 11, 3, 0, 0), '文化の日'),
#     (datetime.datetime(2015, 11, 23, 0, 0), '勤労感謝の日'),
#     (datetime.datetime(2015, 12, 23, 0, 0), '天皇誕生日')
# ]

# get japanese holidays in 2015-2016.
holidays = CountryHolidays.between('JP', 2015, 2016)

# get USA holidays in 2015
holidays = CountryHolidays.get('US', 2015)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

holidays-jp-1.0.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

holidays_jp-1.0.0-py2.7.egg (12.9 kB view details)

Uploaded Egg

holidays-jp-1.0.0.macosx-10.10-x86_64.tar.gz (9.4 kB view details)

Uploaded Source

File details

Details for the file holidays-jp-1.0.0.tar.gz.

File metadata

  • Download URL: holidays-jp-1.0.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for holidays-jp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0f8540873b1ec7b868302739880f50804f85651fcbef6773aee3b4fd2e483cc2
MD5 e3adb24471b31ca595aef1b1c46591af
BLAKE2b-256 3f1517603294113b4570bdf419309f0888d0f6dcccb061137bb845fef04c4151

See more details on using hashes here.

File details

Details for the file holidays_jp-1.0.0-py2.7.egg.

File metadata

File hashes

Hashes for holidays_jp-1.0.0-py2.7.egg
Algorithm Hash digest
SHA256 7e69d2e62298c3e49849cc595c9156830f6a2b2a17f80f01656b55774cfdcf80
MD5 c335eb8a7f04d9d89889068b02f3566d
BLAKE2b-256 54ebb390140b95720d52dd455602976ef16d7342f23f1bed37170a1624d814aa

See more details on using hashes here.

File details

Details for the file holidays-jp-1.0.0.macosx-10.10-x86_64.tar.gz.

File metadata

File hashes

Hashes for holidays-jp-1.0.0.macosx-10.10-x86_64.tar.gz
Algorithm Hash digest
SHA256 8e5e761dc003d31680f86357fca48db7522cf72f24fb5ef1e759edb07ec7b5a4
MD5 c3e93bd1829c14a65d078abab7846389
BLAKE2b-256 b20d9a07296bb8423ca7d9d7402411535991440c67a30812771e7a1057598eca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page