Official Python library for Holiday API https://holidayapi.com
Find a file
2024-08-09 16:07:05 -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: update license, bump version 2024-08-09 16:07:05 -05:00
README.md chore: cleanin' and bumpin' 2019-04-19 22:58:53 -05:00
setup.py chore: update license, bump version 2024-08-09 16:07:05 -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)