chore: cleanin' and bumpin'

* Updated copyright years / company name on LICENSE.
* Fixed up spacing in the README.
* Bumped version number.
This commit is contained in:
Josh Sherman 2019-04-19 22:58:53 -05:00
parent 6e92b65a9a
commit a2c5190805
No known key found for this signature in database
GPG key ID: 55B058A80530EF22
4 changed files with 13 additions and 13 deletions

View file

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2016 Josh Sherman
Copyright (c) 2016, 2017, 2018, 2019 Gravity Boulevard, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View file

@ -15,16 +15,16 @@ 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,
# Required
'country': 'US',
'year': 2016,
# Optional
# 'month': 7,
# 'day': 4,
# 'previous': True,
# 'upcoming': True,
# 'public': True,
# 'pretty': True,
}
holidays = hapi.holidays(parameters)

View file

@ -15,7 +15,7 @@ class v1:
response = requests.get(url, params=parameters);
data = response.json()
if not response.ok:
if not data.get('error'):
data['error'] = 'Unknown error.'

View file

@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='python-holidayapi',
version='1.0.0',
version='1.1.0',
description='Official Python library for Holiday API',
url='https://holidayapi.com',
author='Josh Sherman',