Package: openjd-cli
Open Job Description - CLIOpen Job Description (OpenJD) is a flexible open specification for defining render jobs which are portable
between studios and render solutions. This package provides a command-line interface that can be used
to validate OpenJD templates, run OpenJD jobs locally, and more.For more information about Open Job Description and our goals with it, please see the
Open Job DescriptionWiki on GitHub.CompatibilityThis library requires:Python 3.9 or higher;Linux, MacOS, or Windows operating system;On Linux/MacOS:sudoOn Windows:PowerShell 5.xEXPERIMENTALNote that compatibility with the Windows operating system is currently in active development
and should be considered to be experimental. We recommend that this application not be used in Windows-based
production environments at this time. We will remove this notice when Windows compatibility is considered
sufficiently stable and secure for use in Windows-based production environments.VersioningThis package's version followsSemantic 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.ContributingWe encourage all contributions to this package.  Whether it's a bug report, new feature, correction, or additional
documentation, we greatly value feedback and contributions from our community.Please seeCONTRIBUTING.mdfor our contributing guidelines.CommandsGetting HelpThe mainopenjdcommand and all subcommands support a--helpoption to display
information on how to use the command.checkValidates, or reports any syntax errors that appear in the schema of a Job Template file.ArgumentsNameTypeRequiredDescriptionExamplepathpathyesA path leading to a Job or Environment template file./path/to/template.json--outputstringnoHow to display the results of the command. Allowed values arehuman-readable(default),json, andyaml.--output json,--output yamlExample$openjdcheck/path/to/job.template.json

Templateat'/path/to/job.template.json'passesvalidationchecks!summaryDisplays summary information about a sample Job or Step, and the Steps and Tasks therein. The user may provide parameters to
customize the Job, as parameters can have an impact on the amount of Steps and Tasks that a job consists of.ArgumentsNameTypeRequiredDescriptionExamplepathpathyesA path leading to a Job template file./path/to/job.template.json--job-param,-pstring, pathnoThe values for the job template's parameters. Can be provided as key-value pairs, inline JSON string, or path(s) to a JSON or YAML document. If provided more than once then the given values are combined in the order that they appear.--job-param MyParam=5,-p file://parameter_file.json,-p '{"MyParam": "5"}'--stepstringnoThe name of the Step to summarize.--step Step1--outputstringnoHow to display the results of the command. Allowed values arehuman-readable(default),json, andyaml.--output json,--output yamlExample$openjd-clisummary/path/to/job.template.json\--job-paramJobName=SampleJob\--job-param'{"FileToRender": "sample.blend"}'\--job-paramfile://some_more_parameters.json

---Summaryfor'SampleJob'---

Parameters:-JobName(STRING):SampleJob-FileToRender(PATH):sample.blend-AnotherParameter(INT):10Totalsteps:2Totaltasks:15Totalenvironments:0---Stepsin'SampleJob'---1.'Step1'1Taskparameter(s)10totalTasks2.'Step2'2Taskparameter(s)5totalTasksrunGiven a Job Template, Job Parameters, and optional Environment Templates this will run a set of the Tasks
from the constructed Job locally within an OpenJD Sesssion.Please seeHow Jobs Are Runfor
details on how Open Job Description's Jobs are run within Sessions.ArgumentsNameTypeRequiredDescriptionExamplepathpathyesA path leading to a Job template file./path/to/job.template.json--stepstringyesThe name of the Step to run in a local Session.--step Step1--environmentpathsnoPath to a file containing Environment Template definitions. Can be provided multiple times.--environment /path/to/env.template1.json --environment /path/to/env.template2.yaml--job-param,-pstring, pathnoThe values for the job template's parameters. Can be provided as key-value pairs, inline JSON string, or as path(s) to a JSON or YAML document. If provided more than once then the given values are combined in the order that they appear.--job-param MyParam=5,-p file://parameter_file.json,-p '{"MyParam": "5"}'--task-param,-tpstringnoInstructs the command to run a single task in a Session with the given value for one of the task parameters. The option must be provided once for each task parameter defined for the Step, with each instance providing the value for a different task parameter. Mutually exclusive with--tasksand--maximum-tasks.-tp MyParam=5 -tp MyOtherParam=Foo--tasksstring, pathnoInstructs the command to run one or more tasks for the Step in a Session. The argument must be either the filename of a JSON or YAML file containing an array of maps from task parameter name to value; or an inlined JSON string of the same. Mutually exclusive with--task-param/-tpand--maximum-tasks.--tasks '[{"MyParam": 5}]',--tasks file://parameter_set_file.json--maximum-tasksintegernoA maximum number of Tasks to run from this Step. Unless present, the Session will run all Tasks defined in the Step's parameter space or the Task(s) selected by the--task-paramor--tasksarguments. Mutually exclusive with--task-param/-tpand--tasks.--maximum-tasks 5--run-dependenciesflagnoIf present, runs all of a Step's dependencies in the Session prior to the Step itself.--run-dependencies--path-mapping-rulesstring, pathnoThe path mapping rules to apply to the template. Should be a JSON-formatted list of Open Job Description path mapping rules, provided as a string or a path to a JSON/YAML document prefixed with 'file://'.--path-mapping-rules [{"source_os": "Windows", "source_path": "C:\test", "destination_path": "/mnt/test"}],--path-mapping-rules file://rules_file.json--preserveflagnoIf present, the Session's working directory will not be deleted when the run is completed.--preserve--verboseflagnoIf present, then verbose logging will be enabled in the Session's log.--verbose--outputstringnoHow to display the results of the command. Allowed values arehuman-readable(default),json, andyaml.--output json,--output yamlExample$openjd-clirun/path/to/job.template.json--stepStep1\--job-paramPingServer=amazon.com\--task-paramPingCount=20\--task-paramPingDelay=30# ... Task logs accompanied by timestamps ...---Resultsoflocalsession---

Sessionendedsuccessfully
Job:MyJob
Step:Step1
Duration:1.0seconds
Tasksrun:1schemaReturns the Open Job Description model as a JSON schema document body.ArgumentsNameTypeRequiredDescriptionExample--versionstringyesThe specification version to get the JSON schema for.--version jobtemplate-2023-09--outputstringnoHow to display the results of the command. Allowed values arehuman-readable(default),json, andyaml.--output json,--output yamlExample$openjd-clischema--versionjobtemplate-2023-09{"title":"JobTemplate",# ... JSON body corresponding to the Open Job Description model schema ...}DownloadingYou can download this package from:PyPIGitHub releasesVerifying GitHub ReleasesYou can verify the authenticity of the release artifacts using thegpgcommand line tool.Download the desired release artifacts from the GitHub releases page. Make sure to download the corresponding PGP signature file (ending with.sig) as well.
For example, if you would like to verify your download of the wheel for version1.2.3, you should have the following files downloaded:openjd_cli-1.2.3-py3-none-any.whl
openjd_cli-1.2.3-py3-none-any.whl.sigInstall thegpgcommand line tool. The installation process varies by operating system. Please refer to the GnuPG website for instructions:https://gnupg.org/download/Save the following contents to a file calledopenjobdescription-pgp.asc:-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBGXGjx0BEACdChrQ/nch2aYGJ4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CzC10CZAVscJB+nnoUbB/o3bPak6GUxBHpMgomb0K5g4Z4fXY
4AZ9jKFoLgNcExdwteiUdSEnRorZ5Ny8sP84lwJziD3wuamVUsZ1C/KiQJBGTp5e
LUY38J1oIwptw5fqjaAq2GQxEaIknWQ4fr3ZvNYUuGUt5FbHe5U5XF34gC8PK7v7
bT/7sVdZZzKFScDLfH5N36M5FrXfTaXsVbfrRoa2j7U0kndyVEZyJsKVAQ8vgwbJ
w/w2hKkyQLAg3l5yO5CHLGatsfSIzea4WoOAaroxiNtL9gzVXzqpw6qPEsH9hsws
HsPEQWXHmDQvFTNUU14qic1Vc5fyxCBXIAGAPBd20b+219XznJ5uBKUgtvnqcItj
nMYe6Btxh+pjrTA15X/p81z6sB7dkL1hPHfawLhCEzJbIPyyBTQYqY00/ap4Rj7t
kzSiyzBejniFfAZ6eYBWsej7uXUsVndBF1ggZynPTeE=
=iaEm
-----END PGP PUBLIC KEY BLOCK-----Import the OpenPGP key for Open Job Description by running the following command:gpg --import --armor openjobdescription-pgp.ascDetermine whether to trust the OpenPGP key. Some factors to consider when deciding whether or not to trust the above key are:The internet connection you’ve used to obtain the GPG key from this website is secureThe device that you are accessing this website on is secureIf you have decided to trust the OpenPGP key, then edit the key to trust withgpglike the following example:$ gpg --edit-key A2F0F059BCC40987
gpg (GnuPG) 2.0.22; Copyright (C) 2013 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


pub  4096R/BCC40987  created: 2024-02-09  expires: 2026-02-08  usage: SCEA
                     trust: unknown       validity: unknown
[ unknown] (1). Open Job Description <openjobdescription@amazon.com>

gpg> trust
pub  4096R/BCC40987  created: 2024-02-09  expires: 2026-02-08  usage: SCEA
                     trust: unknown       validity: unknown
[ unknown] (1). Open Job Description <openjobdescription@amazon.com>

Please decide how far you trust this user to correctly verify other users' keys
(by looking at passports, checking fingerprints from different sources, etc.)

  1 = I don't know or won't say
  2 = I do NOT trust
  3 = I trust marginally
  4 = I trust fully
  5 = I trust ultimately
  m = back to the main menu

Your decision? 5
Do you really want to set this key to ultimate trust? (y/N) y

pub  4096R/BCC40987  created: 2024-02-09  expires: 2026-02-08  usage: SCEA
                     trust: ultimate      validity: unknown
[ unknown] (1). Open Job Description <openjobdescription@amazon.com>
Please note that the shown key validity is not necessarily correct
unless you restart the program.

gpg> quitVerify the signature of the Open Job Description release viagpg --verify. The command for verifying the example files from step 1 would be:gpg --verify ./openjd_cli-1.2.3-py3-none-any.whl.sig ./openjd_cli-1.2.3-py3-none-any.whlSecuritySeeCONTRIBUTINGfor more information.LicenseThis project is licensed under the Apache-2.0 License.