Skip to main content

DaVinci Resolve Python API stubs

Project description

DaVinci Resolve Python API stubs

Using these stubs you can have type hints and autocompletion in your Python IDE when using DaVinci Resolve Python API. No more stumbling in the dark, yay!

Installation

$ pip install fusionscript-stubs

Alternatively, drop fusionscript.pyi somewhere your IDE will find it and adjust your import statements accordingly.

How to use

Add this on top of your script:

from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from fusionscript import Resolve  # ...and/or other types you want

You may then use these imported types in your code and get type hints, but they have to be quoted, for example:

def GetResolve() -> 'Resolve':
    ...

Happy scripting!

Patches are welcome to fix any errors in the stubs!

About versioning

The stubs package major and minor version numbers (e.g. 18.6) indicate compatibility with the corresponding DaVinci Resolve version and is based on the documentation (scripting README.txt) shipped with that version. The patch version number is incremental and does not correspond to DaVinci Resolve releases.

The current stubs are based on the documentation marked as "Updated as of 18 December 2023".

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

fusionscript_stubs-18.6.6.tar.gz (23.0 kB view hashes)

Uploaded Source

Built Distribution

fusionscript_stubs-18.6.6-py3-none-any.whl (23.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page