Official Python library for Holiday API https://holidayapi.com
Find a file
Josh Sherman a2c5190805
chore: cleanin' and bumpin'
* Updated copyright years / company name on LICENSE.
* Fixed up spacing in the README.
* Bumped version number.
2019-04-19 22:58:53 -05:00
holidayapi chore: cleanin' and bumpin' 2019-04-19 22:58:53 -05:00
.gitignore Initial commit 2016-09-05 12:08:32 -05:00
LICENSE chore: cleanin' and bumpin' 2019-04-19 22:58:53 -05:00
README.md chore: cleanin' and bumpin' 2019-04-19 22:58:53 -05:00
setup.py chore: cleanin' and bumpin' 2019-04-19 22:58:53 -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)