Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Latest commit

 

History

History
17 lines (11 loc) · 498 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 498 Bytes

The Cook Scheduler Python Client API

This package defines a client API for Cook Scheduler, allowing Python applications to easily integrate with Cook.

Quickstart

The code below shows how to use the client API to connect to a Cook cluster listening on localhost:12321, submit a job to the cluster, and query its information.

from cookclient import JobClient

client = JobClient('localhost:12321')

uuid = client.submit(command='ls')
job = client.query(uuid)
print(str(job))