Pibooth plugin to upload pictures on Dropbox.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for pibooth_dropbox-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 328db930a4b4a6abb5c9b9f2ee2c811926d891151b6d3341eeaa3f7effa438d7 |
|
MD5 | 4d1f6d9c74471a87457b91fe43baadba |
|
BLAKE2b-256 | f0a5ab815e0ffd4003292d803155d663ad423d76565ed056916c95e604ed9cd9 |