cook-client-api-0.3.5
توضیحات
Cook Scheduler Client API for Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cook-client-api-0.3.5 |
| نام | cook-client-api |
| نسخه کتابخانه | 0.3.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/twosigma/Cook |
| آدرس اینترنتی | https://pypi.org/project/cook-client-api/ |
| مجوز | - |
# 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.
```python
from cookclient import JobClient
client = JobClient('localhost:12321')
uuid = client.submit(command='ls')
job = client.query(uuid)
print(str(job))
```
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cook-client-api-0.3.5:
pip install cook-client-api-0.3.5.whl
نصب پکیج tar.gz cook-client-api-0.3.5:
pip install cook-client-api-0.3.5.tar.gz