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)

Metadata

Release files for opencue-pyoutline 1.34.22

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.34.22
File Size Uploaded
opencue_pyoutline-1.34.22.tar.gz 61.9 kB Details

Built distribution (wheel)

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

Total release size: 132.1 kB

Release files / opencue_pyoutline-1.34.22.tar.gz

Download URL opencue_pyoutline-1.34.22.tar.gz
Size 61.9 kB
Tags Source
SHA-256 checksum
How to use checksums
37dcf2f1927f797adde01b0b95d6464a4e0f65cda190742d44863f0362e77995
BLAKE2b-256 checksum
How to use checksums
708a535c706f95f4874d9d6cb390583b35b51c4cbb70133dfa0c8fc3d2197359
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

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

Download URL opencue_pyoutline-1.34.22-py3-none-any.whl
Size 70.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c50a0da2ba2372b635d47ff7bedd91c50baf621a07e244f057da53122d6bd3c
BLAKE2b-256 checksum
How to use checksums
0e21c237f055c0e0c03fc31da36d1ec6231d971e1cc048a48fe125dcf4ca73f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release history Release notifications | RSS feed

This release

1.34.22 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