mirror of
https://github.com/holidayapi/holidayapi-python.git
synced 2025-06-21 04:16:32 +00:00
Initial commit
This commit is contained in:
parent
9ebc846538
commit
9cba09675e
3 changed files with 67 additions and 0 deletions
29
README.md
29
README.md
|
@ -1,2 +1,31 @@
|
|||
# python-holidayapi
|
||||
Official Python library for Holiday API
|
||||
|
||||
## Installation
|
||||
|
||||
```shell
|
||||
pip install 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);
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue