# Dropbox Tasks


Tasks that interface with Dropbox.

# DropboxDownload

class

prefect.tasks.dropbox.dropbox.DropboxDownload

(path=None, **kwargs)[source]

Task for downloading a file from Dropbox. Note that all initialization settings can be provided / overwritten at runtime.

Args:

  • path (str, optional): the path to the file to download. May be provided at runtime.
  • **kwargs (optional): additional kwargs to pass to the Task constructor

methods:                                                                                                                                                       

prefect.tasks.dropbox.dropbox.DropboxDownload.run

(path=None, access_token=None)[source]

Run method for this Task. Invoked by calling this Task within a Flow context, after initialization.

Args:

  • path (str, optional): the path to the file to download
  • access_token (str): a Dropbox access token, provided with a Prefect secret.
Raises:
  • ValueError: if the path is None
Returns:
  • bytes: the file contents, as bytes



This documentation was auto-generated from commit bd9182e
on July 31, 2024 at 18:02 UTC