grnhse-api

A python wrapper for the Greenhouse APIs.
For now, only the Harvest API is supported.
Installation
$ pip install grnhse-api
Basic Usage
from grnhse import Harvest
api_key = 'ABCDE12345'
hvst = Harvest(api_key)
depts = hvst.departments
depts
depts.get()
depts.get(1234)
admin = depts(1234)
admin
admin.get()
hvst.departments(1234).get()
from grnhse import Harvest
api_key = 'ABCDE12345'
hvst = Harvest(api_key)
apps = hvst.applications
apps
all_apps = apps.get()
len(all_apps)
apps.records_remaining
while apps.records_remaining:
all_apps.extend(apps.get_next())
len(all_apps)
all_apps = [app for page in apps for app in page]
len(all_apps)
CHANGELOG
0.1.1 (2020-12-10)
- Update:
requests
package pinned to newer versions - Update: adds the
custom_fields
endpoint - Bugfix: replace
None
with empty string in SessionAuthMixin
0.1.0 (2018-11-10)