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 details)

Uploaded Source

File details

Details for the file japanese_holiday-0.0.4.tar.gz.

File metadata

File hashes

Hashes for japanese_holiday-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ae28b40358de9f45bb52dbf3adb91a324b72d3410dba8b6196202d6faa1a80a6
MD5 00fdfa32b31f4b4dbcd9211ebb6e885f
BLAKE2b-256 2d685808a6eb77cbe3cdcf79da880d96f89453800e427884da2e199407527895

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