Ben-Baert / python-holidayapi

Official Python library for Holiday API

Home Page:https://holidayapi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-holidayapi

Official Python library for Holiday API

Installation

pip install python-holidayapi

Usage

import holidayapi

hapi = holidayapi.v1('_YOUR_API_KEY_')

parameters = {
	# Required
	'country': 'US',
	'year':    2016,
	# Optional
	# 'month':    7,
	# 'day':      4,
	# 'previous': True,
	# 'upcoming': True,
	# 'public':   True,
	# 'pretty':   True,
}

holidays = hapi.holidays(parameters)

About

Official Python library for Holiday API

https://holidayapi.com

License:MIT License


Languages

Language:Python 100.0%