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.

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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page