Skip to main content

Cook Scheduler Client API for Python

Project description

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))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cook-client-api-0.3.5.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

cook_client_api-0.3.5-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file cook-client-api-0.3.5.tar.gz.

File metadata

  • Download URL: cook-client-api-0.3.5.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8

File hashes

Hashes for cook-client-api-0.3.5.tar.gz
Algorithm Hash digest
SHA256 a6677613e5e361e2b062a38d0516b5f0506e1c4a9d609538126257d976ccda21
MD5 efe26f6be2f68ca2fadb3e25550678ef
BLAKE2b-256 b5a2b6d53ca47dc768141826a5d89ed31eb8dac277df566f0da465161676074a

See more details on using hashes here.

File details

Details for the file cook_client_api-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: cook_client_api-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8

File hashes

Hashes for cook_client_api-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 082a399f9ca2216be0a63769a8ee9816081b76ff40fbaa40d7d0565130eb9c40
MD5 cd509c1bf6bfefbf5858528306049912
BLAKE2b-256 a76fe6a4d5b31a015a7f23c8bf709f444692413cce482dd8721b2d55ac79d638

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page