Dropbox plugin

Installation

First, make sure you have the latest dev branch (v3 API) of POD installed and running.

Run below commands after cloning this repository and entering into its directory: Docker:

docker build -t {PLUGIN_DOCKER_CONTAINER_NAME} .

Local:

pip install poetry
poetry install

Currently, video and photo files supported

pytest ./tests/*

To add support for other formats, you need to add a function for processing data and add its to plugin_template/service_api/dropbox_service.py

self.media_types = {
        IMAGE_FORMATS: {'get_info_func': self.get_image_data, 'item_type': Photo},
        VIDEO_FORMATS: {'get_info_func': self.get_video_data, 'item_type': Video},
    }

Login to dropbox works via OAuth

Data Structures and Flow

Used data types are:

  • Plugin { .... }
  • StartPlugin { ... }
  • Account { ... }
  • Folder {...}
  • Photo {...}
  • Video {...}