Skip to main content

Pibooth plugin to upload pictures on Dropbox.

Project description

Python 3.6+ PyPi package PyPi downloads

pibooth-dropbox is a plugin for the pibooth application.

Its permits to upload the pictures to a Dropbox folder. It requires an internet connection.

Install

$ pip3 install pibooth-dropbox

Configuration

Here below the new configuration options available in the pibooth configuration. The keys and their default values are automatically added to your configuration after first pibooth restart.

[DROPBOX]

# Dropbox folder where pictures are uploaded. Subfolders can be separated by /
album_name = Pibooth

# Refresh-Token for the dropbox api
token =

# Dropbox Application Key
app_key =

# Dropbox Application Password
app_secret =

Picture URL

Uploaded picture URL is set to app.previous_picture_url attribute at the end of processing state (state_processing_exit hook).

Grant secured access

The upload part was mainly taken und adapted from the Dropbox Api example updown.py from the dropbox-sdk-python https://github.com/dropbox/dropbox-sdk-python https://github.com/dropbox/dropbox-sdk-python/blob/master/example/updown.py

Description on how to create a dropbox app is described here for a Gravity app, but it can be used to create any other custom app: https://docs.gravityforms.com/creating-a-custom-dropbox-app/

Description on how to create a refresh token and how to implement this into a python code is very good described here: https://stackoverflow.com/questions/70641660/how-do-you-get-and-use-a-refresh-token-for-the-dropbox-api-python-3-x

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pibooth_dropbox-0.0.1-py3-none-any.whl (16.8 kB view hashes)

Uploaded Python 3

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