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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opencue_pyoutline-1.13.8.tar.gz.
File metadata
- Download URL: opencue_pyoutline-1.13.8.tar.gz
- Upload date:
- Size: 58.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ea2e8a2d353ec90aebad5649511ffb0c22247213c4daedbf5f0d0f669262cfd
|
|
| MD5 |
16d4d235ecbea8e45bd989f38ef4f120
|
|
| BLAKE2b-256 |
9457c0df9f7e96683f459fd5cab1f701c34c1d6b1cd9ba6c398d8190785a622d
|
File details
Details for the file opencue_pyoutline-1.13.8-py3-none-any.whl.
File metadata
- Download URL: opencue_pyoutline-1.13.8-py3-none-any.whl
- Upload date:
- Size: 65.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
882e3a8b7a9a7d9bf22452a0e87b3346e5f536ccebc61ab0799d0dfbb0d1dd39
|
|
| MD5 |
ff860ba357046f22eaf67b59bb27e897
|
|
| BLAKE2b-256 |
32b4c4d07fb27635e5ff2f4723048ca0a5e9fbd357fd84a7b56be9d092c55092
|