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. 19.1) 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 "Last Updated: 28 October 2024".
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file fusionscript_stubs-19.1.tar.gz
.
File metadata
- Download URL: fusionscript_stubs-19.1.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ce4fe266b4e0c34b3edd6f004edc521a8f9e6dede6a74ab394de53213fcbfa7 |
|
MD5 | 621fb48b2f1d2907c1b232c1cbcedc20 |
|
BLAKE2b-256 | 94c87314cb8863fde24cecdd82c6594606b2418c3001c0c8a25dba2e6008687e |
File details
Details for the file fusionscript_stubs-19.1-py3-none-any.whl
.
File metadata
- Download URL: fusionscript_stubs-19.1-py3-none-any.whl
- Upload date:
- Size: 27.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fc42cbec8c4edfcd816d8a572dfb579e54e64cc8cd6d9c188a410ce4900032a |
|
MD5 | 58e20e0f9cd77f4da6490d8d48589659 |
|
BLAKE2b-256 | 13ccd1797b457f7cb06379de8979832328d26cec7015557122e3ad1a81a3feb7 |