This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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)
Release History

Release History

This version
History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
holidays-jp-1.0.0.macosx-10.10-x86_64.tar.gz (9.4 kB) Copy SHA256 Checksum SHA256 any Dumb Binary Nov 5, 2015
holidays_jp-1.0.0-py2.7.egg (12.9 kB) Copy SHA256 Checksum SHA256 2.7 Egg Nov 5, 2015
holidays-jp-1.0.0.tar.gz (4.7 kB) Copy SHA256 Checksum SHA256 Source Nov 5, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting