opentimelineio.plugins package

Plugin system for OTIO

Submodules

opentimelineio.plugins.manifest module

OTIO Python Plugin Manifest system: locates plugins to OTIO.

opentimelineio.plugins.manifest.ActiveManifest(force_reload=False)

Return the fully resolved plugin manifest.

class opentimelineio.plugins.manifest.Manifest(*args, **kwargs)

Bases: opentimelineio._otio.SerializableObject

Defines an OTIO plugin Manifest.

This is considered an internal OTIO implementation detail.

A manifest tracks a collection of plugins and enables finding them by name or other features (in the case of adapters, what file suffixes they advertise support for).

For more information, consult the documenation.

adapter_module_from_name(name)

Return the adapter module associated with a given adapter name.

adapter_module_from_suffix(suffix)

Return the adapter module associated with a given file suffix.

property adapters

Adapters this manifest describes.

extend(another_manifest)

Aggregate another manifest’s plugins into this one.

During startup, OTIO will deserialize the individual manifest JSON files and use this function to concatenate them together.

from_filepath(suffix)

Return the adapter object associated with a given file suffix.

from_name(name, kind_list='adapters')

Return the plugin object associated with a given plugin name.

property hook_scripts

Scripts that can be attached to hooks.

property hooks

Hooks that hooks scripts can be attached to.

property media_linkers

Media Linkers this manifest describes.

schemadef_module_from_name(name)

Return the schemadef module associated with a given schemadef name.

property schemadefs

Schemadefs this manifest describes.

opentimelineio.plugins.manifest.load_manifest()

Walk the plugin manifest discovery systems and accumulate manifests.

The order of loading (and precedence) is:
  1. manifests specfied via the OTIO_PLUGIN_MANIFEST_PATH variable

  2. builtin plugin manifest

  3. contrib plugin manifest

  4. setuptools.pkg_resources based plugin manifests

opentimelineio.plugins.manifest.manifest_from_file(filepath)

Read the .json file at filepath into a Manifest object.

opentimelineio.plugins.manifest.manifest_from_string(input_string)

Deserialize the json string into a manifest object.

opentimelineio.plugins.python_plugin module

Base class for OTIO plugins that are exposed by manifests.

class opentimelineio.plugins.python_plugin.PythonPlugin(name=None, execution_scope=None, filepath=None)

Bases: opentimelineio._otio.SerializableObject

A class of plugin that is encoded in a python module, exposed via a manifest.

property execution_scope

Describes whether this adapter is executed in the current python process or in a subshell. Options are: [‘in process’, ‘out of process’].

property filepath

Absolute path or relative path to adapter module from location of json.

module()

Return the module object for this adapter.

module_abs_path()

Return an absolute path to the module implementing this adapter.

property name

Adapter name.

plugin_info_map()

Returns a map with information about the plugin.

opentimelineio.plugins.python_plugin.plugin_info_map()