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

# 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

Access to a Dropbox is granted by an APP_KEY and an APP_SECRET that shall be defined in the configuration. These are not your Dropbox credentials and it can not be used by an other application than the one defined in Dropbox.com.

step1_create_button

Go to Dropbox App Console and click on the Create app button.

step2_project_name

Under Choose an API section, select Scoped Access. Under Choose the type of access you need, select Full Dropbox. Enter an application name (for instance My Awsome Photo Booth).

step3_app_key

Click the Create app button. You will be redirected to the console for your app. Note the presence of your App key and App secret on this page. You will need to enter these into pibooth configuration file once you have followed the remaining steps.

step4_redirect_uri

Add the OAuth Redirect URI http://localhost:35880/ to your Dropbox app settings under the OAuth2 Redirect URIs section.

step5_permissions

Click on the Permissions tab then select the files.content.write and files.content.read permissions in order to allow pibooth to upload pictures on your Dropbox. Finally click the Submit button at the bottom of the page for the new permissions to take effect.

Project details


Download files

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

Source Distribution

pibooth_dropbox-0.0.3.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

pibooth_dropbox-0.0.3-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file pibooth_dropbox-0.0.3.tar.gz.

File metadata

  • Download URL: pibooth_dropbox-0.0.3.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for pibooth_dropbox-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c92aea4548749facb58097428910ec2d10c48c1ae327dc5a6676504308a98d44
MD5 ab0ab1701ae43f22d4ce4f4af67ffd4e
BLAKE2b-256 1d411e3d55c8ea93cb9fba91b46cbfd7b7bd8aa5a9002017916850a4b37b10f4

See more details on using hashes here.

File details

Details for the file pibooth_dropbox-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pibooth_dropbox-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e439aa3a333ee2fd96c0e555e331d14fb3f0c7916a96ca1ceefd4afc398b0c
MD5 148c5b13c5cb093096e585ec5e6d9fef
BLAKE2b-256 57da921a1ea08ef9eea29a179ef39df0c6b4388b4443e9793467ad6fc46a3894

See more details on using hashes here.

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