Multi-purpose library and command line tool that implements functionality to support applications using AWS Deadline Cloud.
Project description
AWS Deadline Cloud client
AWS Deadline Cloud client is a multi-purpose python library and command line tool for interacting with and submitting Open Job Description (OpenJD) jobs to AWS Deadline Cloud.
To support building workflows on top of AWS Deadline Cloud it implements its own user interaction, job creation, file upload/download, and other useful helpers around the service's api. It can function as a pipeline tool, a standalone gui application, or even be embedded within other applications' runtimes.
Compatibility
This library requires:
- Python 3.8 or higher; and
- Linux, Windows, or macOS operating system.
Getting Started
The AWS Deadline Cloud client can be installed by the standard python packaging mechanisms:
$ pip install deadline
or if you want the optional gui dependencies:
$ pip install "deadline[gui]"
Usage
After installation it can then be used as a command line tool:
$ deadline farm list
- farmId: farm-1234567890abcdefg
displayName: my-first-farm
or as a python library:
from deadline.client import api
api.list_farms()
# {'farms': [{'farmId': 'farm-1234567890abcdefg', 'displayName': 'my-first-farm', ...},]}
Job attachments
Job attachments enable you to transfer files between your workstations and AWS Deadline Cloud, by using Amazon S3 buckets as content-addressed storage in your AWS account.
See job attachments for a more in-depth look at how files are uploaded, stored, and retrieved.
Job bundles
At minimum a job bundle is a folder that contains an OpenJD template as a file named template.json
or template.yaml
, however it can optionally include:
- an
asset_references.yaml
- lists file inputs and outputs, - a
parameter_values.yaml
- contains the selected values for the job template's parameters, - and any number of additional files required for the job.
For example job bundles, visit the samples repository.
To submit a job bundle, you can run
$ deadline bundle submit <path/to/bundle>
or if you have the optional GUI components installed, you can load up a job bundle for submission by running:
$ deadline bundle gui-submit --browse
On submission a job bundle will be created in the job history directory (default: ~/.deadline/job_history
).
For more information on jobs and job bundles, see AWS Deadline Cloud jobs.
Configuration
You can see the current configuration by running:
$ deadline config show
and change the settings by running the associated get
and set
commands.
To see a list of settings that can be configured, run:
$ deadline config --help
Or you can manage settings by a graphical interface if you have the optional gui dependencies:
$ deadline config gui
By default, configuration of AWS Deadline Cloud is provided at ~/.deadline/config
, however this can be overridden by the DEADLINE_CONFIG_FILE_PATH
environment variable.
Authentication
In addition to the standard AWS credential mechanisms (AWS Profiles, instance profiles, and environment variables), AWS Deadline Cloud monitor credentials are also supported.
To view the currently configured credentials authentication status, run:
$ deadline auth status
Profile Name: (default)
Source: HOST_PROVIDED
Status: AUTHENTICATED
API Availability: True
If the currently selected AWS Profile is set-up to use AWS Deadline Cloud monitor credentials, you can authenticate by logging in:
$ deadline auth login
and removing them by logging out:
$ deadline auth logout
Versioning
This package's version follows Semantic Versioning 2.0, but is still considered to be in its initial development, thus backwards incompatible versions are denoted by minor version bumps. To help illustrate how versions will increment during this initial development stage, they are described below:
- The MAJOR version is currently 0, indicating initial development.
- The MINOR version is currently incremented when backwards incompatible changes are introduced to the public API.
- The PATCH version is currently incremented when bug fixes or backwards compatible changes are introduced to the public API.
Contributing
See CONTRIBUTING for information on reporting issues, requesting features, and developer information.
Security
See security issue notifications for more information.
Telemetry
See telemetry for more information.
Optional third party dependencies - GUI
N.B.: Although this repository is released under the Apache-2.0 license, its optional GUI feature uses the third party Qt and PySide projects. The Qt and PySide projects' licensing includes the LGPL-3.0 license.
License
This project is licensed under the Apache-2.0 License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file deadline-0.48.2.tar.gz
.
File metadata
- Download URL: deadline-0.48.2.tar.gz
- Upload date:
- Size: 179.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51b86e6519cb8d856b6632f998643fad7a15baccb377b168f972a9255bbe04bc |
|
MD5 | 237e17e5f363fb50399e6d21871cc83c |
|
BLAKE2b-256 | dbdaf1eed1a5fc63e0f91f316063ba6eecdfaa6f6b3bedd46043ca5b9c46816f |
File details
Details for the file deadline-0.48.2-py3-none-any.whl
.
File metadata
- Download URL: deadline-0.48.2-py3-none-any.whl
- Upload date:
- Size: 220.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 560a99370b6a0be98f1de9069ba72c6e243ee7c4778682dbd5929b560ef0d5f1 |
|
MD5 | 2c1bb7ff6e12cf1099ec2f43274831cb |
|
BLAKE2b-256 | dac49a766b2a88a833223c2fd06edfd633708d9e03d0cb9827a9f0e3df3ce8d1 |