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
Built Distribution
Hashes for fusionscript_stubs-18.6.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f5044f1a01a6e596d071d4a1840b2477434b6fcfa572f80f2e230cda8e1c29b |
|
MD5 | 06eafb2c28b7a81eb5cc0df85d6ec881 |
|
BLAKE2b-256 | 257a321bc6da213f04532c4fb0da80e2f5f628aa963e650f7072b62ae71beaad |
Hashes for fusionscript_stubs-18.6.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 226e93037b6f2337069817323f11d257a47c94057ccc439750e9236c7da8eddd |
|
MD5 | 0d1ea510af2c64410d16de2e6df10b42 |
|
BLAKE2b-256 | 4b98fdcaed8b50bdd73c46c79aee1aa20bbe30f07ecc21b7dc64c2c9dae8e0b9 |