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

31 lines
470 B
Markdown

# python-holidayapi
Official Python library for Holiday API
## Installation
```shell
pip install python-holidayapi
```
## Usage
```python
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)
```