#!/usr/bin/env python import sys import hub.lib.config as config config_file = '/usr/local/pkg/hub/etc/hub.conf' from hub.lib.client import Client if __name__ == '__main__': jobid = sys.argv[1] client = Client(config_file) response = client.get(jobid) print response
def get_job(job_id): client = Client('/usr/local/pkg/hub/etc/hub.conf') response = client.get(job_id) return response