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.2.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cook_client_api-0.2.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cook-client-api-0.2.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.5

File hashes

Hashes for cook-client-api-0.2.0.tar.gz
Algorithm Hash digest
SHA256 75a3ab2c51f1c682d294a45556c5420b6f63587da2ac16f7b1de034fa7363861
MD5 74c71a580ac5c8419da9fb8bb6b9aa8f
BLAKE2b-256 3e62e4579a118abe37fcdd15bda6a1b50fc22d6a62c3c1e2fc86a288228e2488

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cook_client_api-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.5

File hashes

Hashes for cook_client_api-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d10e19e8e7ca204b4b70ce0a12dab985d56562044c648598702aaf9416d817bf
MD5 14cd05b7dc0bc1ddbec8b35430aae77b
BLAKE2b-256 2322371790af8fa2cac35c05467a973bb31f750d0989c3bd9e028557ade0e502

See more details on using hashes here.

Supported by

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