Skip to main content

Python CLI commands using the YellowDog Python SDK

Project description

Command Line Interface for the YellowDog Platform

Overview

This is a set of Python CLI commands for interacting with the YellowDog Platform, also providing examples of usage of the YellowDog Python SDK.

The commands support:

  • Aborting running Tasks with the yd-abort command
  • Boosting Allowances with the yd-boost command
  • Cancelling Work Requirements with the yd-cancel command
  • Comparing whether Worker Pools are a match for Task Groups with the yd-compare command
  • Creating, Updating and Removing Compute Source Templates, Compute Requirement Templates, Keyrings, Credentials, Image Families, Allowances, Configured Worker Pools, User Attributes, Namespace Policies, Groups, and Applications with the yd-create and yd-remove commands
  • Deleting files from a remote data store with the yd-delete command
  • Downloading files from a remote data store with the yd-download command
  • Finishing Work Requirements with the yd-finish command
  • Following Event Streams for Work Requirements, Worker Pools and Compute Requirements with the yd-follow command
  • Instantiating Compute Requirements with the yd-instantiate command
  • Listing YellowDog items using the yd-list command
  • Listing remote data store contents with the yd-ls command
  • Provisioning Worker Pools with the yd-provision command
  • Resizing Worker Pools and Compute Requirements with the yd-resize command
  • Showing the details of any YellowDog entity using its YellowDog ID with the yd-show command
  • Showing the details of the current Application with the yd-application command
  • Shutting Down Worker Pools and Nodes with the yd-shutdown command
  • Submitting Node Actions to Worker Pool nodes with the yd-nodeaction command
  • Starting HELD Work Requirements and Holding (or pausing) RUNNING Work Requirements with the yd-start and yd-hold commands
  • Submitting Work Requirements with the yd-submit command
  • Terminating Compute Requirements with the yd-terminate command
  • Uploading files to a remote data store with the yd-upload command
  • Cloud provider setup (AWS, Azure, GCP) with the yd-cloudwizard command

Utility commands are also provided: yd-format-json, yd-jsonnet2json, and yd-version.

Installation

Python 3.10 or later is required.

pipx (recommended) — installs into an isolated environment and puts the commands on your PATH automatically:

pipx install yellowdog-python-examples

uv:

uv tool install yellowdog-python-examples

pip + virtual environment:

pip install yellowdog-python-examples

To add optional Jsonnet support:

pipx inject yellowdog-python-examples jsonnet   # pipx
uv tool install "yellowdog-python-examples[jsonnet]"   # uv
pip install "yellowdog-python-examples[jsonnet]"       # pip

Documentation

Please see the documentation in the GitHub repository for full details.

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

yellowdog_python_examples-9.0.0.tar.gz (261.5 kB view details)

Uploaded Source

Built Distribution

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

yellowdog_python_examples-9.0.0-py3-none-any.whl (183.8 kB view details)

Uploaded Python 3

File details

Details for the file yellowdog_python_examples-9.0.0.tar.gz.

File metadata

File hashes

Hashes for yellowdog_python_examples-9.0.0.tar.gz
Algorithm Hash digest
SHA256 0516d7ba8ea36f5f4420db984320617afc9ed2c85b2a2e95c68dc9255aa0c6c4
MD5 312ade41157e86a24d27b456ba136db8
BLAKE2b-256 f7f36e8f5f8560ce0becd064e28613b8936cadb59b01267ef754baa126c96e7d

See more details on using hashes here.

File details

Details for the file yellowdog_python_examples-9.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yellowdog_python_examples-9.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac85ce2017bae385ea1862341513b9e8ca6af51f038e15c11314fa1f3426814d
MD5 fc010a065c77b9ccf009960b4b910dbe
BLAKE2b-256 1d87e80b26c70c99fd6e23365efef8fbc884b49890ae0db91a4cdc85923111bd

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