opentimelineio.versioning

Tools for fetching the family->label->schema:version maps

opentimelineio.versioning.fetch_map(family, label)

Fetch the version map for the given family and label. OpenTimelineIO includes a built in family called “OTIO_CORE”, this is compiled into the C++ core and represents the core interchange schemas of OpenTimelineIO.

Users may define more family/label/schema:version mappings by way of the version manifest plugins.

Returns a dictionary mapping Schema name to schema version, like:

{
    "Clip": 2,
    "Timeline": 1,
    ...
}
Parameters:
  • family (str) – family of labels (ie: “OTIO_CORE”)

  • label (str) – label of schema-version map (ie: “0.15.0”)

Returns:

a dictionary mapping Schema name to schema version

Return type:

dict[str, int]

opentimelineio.versioning.full_map()

Return the full map of schema version sets, including core and plugins. Organized as follows:

{
    "FAMILY_NAME": {
        "LABEL": {
            "SchemaName": schemaversion,
            "Clip": 2,
            "Timeline": 3,
            ...
        }
    }
}

The “OTIO_CORE” family is always provided and represents the built in schemas defined in the C++ core. IE:

{
    "OTIO_CORE": {
        "0.15.0": {
            "Clip": 2,
            ...
        }
    }
}
Returns:

full map of schema version sets, including core and plugins

Return type:

dict[str, dict[str, dict[str, int]]]