Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Get Japanese holiday lib.

Project description

# Japanese Holiday

Get Japanese holidays from Google Calendar.

## Install

Use pip: `$ pip install japanese-holiday`

## Getting Started

* Access [Google Console API](https://code.google.com/apis/console).
* Calender API status turn on.
* Create access key.
* Set function "getholidays" first argument to your access key.


## Example

```python
import japanese_holiday
now = datetime.date.today()
date_from = datetime.date(now.year-1, 1, 1)
date_to = datetime.date(now.year+2, 12, 31)
holidays = japanese_holiday.getholidays(
"YOUR API KEY",
japanese_holiday.HOLIDAY_TYPE_OFFICIAL_JA,
date_from.strftime('%Y-%m-%d'),
date_to.strftime('%Y-%m-%d')
)
```

Project details


Download files

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

Files for japanese_holiday, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size japanese_holiday-0.0.4.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page