holidayapi-python/README.md
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

470 B

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)