Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 464 Bytes
from powerhose import PowerHose
from response_pb2 import Response
def main():
with PowerHose() as ph:
# sending some jobs
for i in xrange(1, 10, 4):
status, result = ph.execute('derive_secret', '')
if status != 'OK':
print 'The job failed'
print result
else:
res = Response.FromString(result)
print res
if __name__ == "__main__":
main()