Skip to main content

PyOutline is a Python library for building and managing OpenCue job definitions. It provides an API to create outlines that describe jobs, layers, and tasks, making it easier to construct repeatable workflows for rendering pipelines.

Project description

OpenCue PyOutline

PyOutline is a Python library for building and managing OpenCue job definitions. It provides an API to create outlines that describe jobs, layers, and tasks, making it easier to construct repeatable workflows for rendering pipelines.

This library serves as a Python layer over OpenCue's XML job descriptions, allowing the construction of complex jobs without having to edit XML directly. PyOutline is used by CueSubmit to construct job submissions.

Example Usage

Here is a simple example of how to submit a job to cuebot using the API

import outline.modules.shell

# Create a job for submission
job = outline.Outline("test-job", shot='test', show='testing', user='jimmy')

# Create a layer that can later be associated with a job. The command can use internal variables that are  
# replaced at runtime (eg. #IFRAME# which is the current frame rendering)
layer1 = outline.modules.shell.Shell("layer1", type="Render", command=["echo #IFRAME#"], range="1-100")

# Adds the layer to the job
job.add_layer(layer1)

# Create a new layer that will run after the first layer is done. The frame size is the same, but the chunk
# size is set to the full range, which means that it will only result in a single task instead of 1 per frame
layer2 = outline.modules.shell.Shell("layer2", type="Util", command=["echo Collecting frames"], range="1-100", chunk=100, tags="ffmpeg")

# Set the layer to depend on layer1
layer2.depend_on(layer1)

# Add the layer to the job
job.add_layer(layer2)

# Submit the job to cuebot. It will not use the cuerun wrapper and mail notification is disabled.
outline.cuerun.launch(job, use_pycuerun=False, os="Linux", nomail=True)

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

opencue_pyoutline-1.19.1.tar.gz (60.3 kB view details)

Uploaded Source

Built Distribution

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

opencue_pyoutline-1.19.1-py3-none-any.whl (69.5 kB view details)

Uploaded Python 3

File details

Details for the file opencue_pyoutline-1.19.1.tar.gz.

File metadata

  • Download URL: opencue_pyoutline-1.19.1.tar.gz
  • Upload date:
  • Size: 60.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for opencue_pyoutline-1.19.1.tar.gz
Algorithm Hash digest
SHA256 3876cae7602d60f208ae5e028c3829f1a476b4adbcf62d21519835c70aa053dc
MD5 f5f562775da6327c4d1427db277334e6
BLAKE2b-256 95003ea730cd6bdd2fa39df40a42a83bdca39beed072f60be164bfd0c6c8e7a3

See more details on using hashes here.

File details

Details for the file opencue_pyoutline-1.19.1-py3-none-any.whl.

File metadata

File hashes

Hashes for opencue_pyoutline-1.19.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cde477f9bb82ad3a05047d7f8525b6a66a490bdd3e4bfd8c4dd09d64afb2c061
MD5 f43189433a37806ae604a30cd5fc6743
BLAKE2b-256 7adaffc2880263a5459e82df73938bca2f1f9c03e8ba9b6e7ea227f336857a37

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