Skip to main content

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.

Source Distribution

japanese_holiday-0.0.4.tar.gz (2.9 kB view hashes)

Uploaded Source

Supported by

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