Official Python library for Holiday API https://holidayapi.com
Find a file
2017-01-06 13:46:14 -06:00
holidayapi Initial commit 2016-09-05 17:17:19 -05:00
.gitignore Initial commit 2016-09-05 12:08:32 -05:00
LICENSE Initial commit 2016-09-05 12:08:32 -05:00
README.md Changed true to True as Python constant. Removed semi-colons as not used in Python. Fixed name of pip package. Put single quotes around parameters as not variables. 2017-01-06 10:33:24 -05:00
setup.py Initial commit 2016-09-05 17:17:19 -05:00

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)