# Dropbox Tasks


Tasks that interface with Dropbox.

# DropboxDownload

class

prefect.tasks.dropbox.dropbox.DropboxDownload

(path=None, access_token_secret=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.
  • access_token_secret (str, optional, DEPRECATED): the name of the Prefect Secret containing a Dropbox access token
  • **kwargs (optional): additional kwargs to pass to the Task constructor

methods:                                                                                                                                                       

prefect.tasks.dropbox.dropbox.DropboxDownload.run

(path=None, access_token=None, access_token_secret=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.
  • access_token_secret (str, optional, DEPRECATED): the name of the Prefect Secret containing a Dropbox access token
Raises:
  • ValueError: if the path is None
Returns:
  • bytes: the file contents, as bytes



This documentation was auto-generated from commit 4a4acb5
on October 23, 2020 at 16:22 UTC