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. 19.0) 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: 1 April 2024".

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-19.0b1.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

fusionscript_stubs-19.0b1-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file fusionscript_stubs-19.0b1.tar.gz.

File metadata

  • Download URL: fusionscript_stubs-19.0b1.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for fusionscript_stubs-19.0b1.tar.gz
Algorithm Hash digest
SHA256 c700b6d47533258be08354e475d580a301e39b568052df0af34b075330e9cb64
MD5 a67c2281bc981128ebda5d8a580b5eee
BLAKE2b-256 d8e66ba3617d9c38648a8e3addfa7f220e365e07a8295326126d9b56e728013b

See more details on using hashes here.

File details

Details for the file fusionscript_stubs-19.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for fusionscript_stubs-19.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 88666ae7bea8479735774e9e3c3b31769fd43034fe35a5e659a9ce2247e6d6f5
MD5 c2180cf3547a511c8d08a05acfcceaaf
BLAKE2b-256 2b05ca69d459068e5418ce632f8e3b15c22745fb2bd47376e7b8dc5d6f36b56e

See more details on using hashes here.

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