Skip to main content

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)

Release files for opencue-pyoutline 1.19.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opencue-pyoutline 1.19.1
File Size Uploaded
opencue_pyoutline-1.19.1.tar.gz 60.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opencue-pyoutline 1.19.1
File Interpreter ABI Platform
opencue_pyoutline-1.19.1-py3-none-any.whl Python 3 none any Details

Total release size: 129.8 kB

Release files / opencue_pyoutline-1.19.1.tar.gz

Download URL opencue_pyoutline-1.19.1.tar.gz
Size 60.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3876cae7602d60f208ae5e028c3829f1a476b4adbcf62d21519835c70aa053dc
BLAKE2b-256 checksum
How to use checksums
95003ea730cd6bdd2fa39df40a42a83bdca39beed072f60be164bfd0c6c8e7a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / opencue_pyoutline-1.19.1-py3-none-any.whl

Download URL opencue_pyoutline-1.19.1-py3-none-any.whl
Size 69.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cde477f9bb82ad3a05047d7f8525b6a66a490bdd3e4bfd8c4dd09d64afb2c061
BLAKE2b-256 checksum
How to use checksums
7adaffc2880263a5459e82df73938bca2f1f9c03e8ba9b6e7ea227f336857a37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

1.19.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page