decorators#

Decorator system for DaVinci Resolve API version checking.

This module provides decorators that can be applied to API methods to automatically check version compatibility at runtime. When a method is decorated, it will: 1. Register the API in the VersionRegistry 2. Check version compatibility before execution 3. Raise APIVersionError if incompatible 4. Warn if deprecated

Example

@requires_resolve_version(added_in=”20.2.0”) def set_name(self, name: str) -> bool:

return self._timeline_item.SetName(name)

Functions

minimum_resolve_version(version_str)

Simplified decorator for APIs that only need minimum version.

requires_resolve_version([added_in, ...])

Decorator to specify DaVinci Resolve version requirements for an API method.

version_range(min_version, max_version)

Decorator for APIs available only in a specific version range.