Skip to main content

Python 3.6+ PyPi package PyPi downloads

pibooth-google-photo is a plugin for the pibooth application.

Its permits to upload the pictures to a Google Photos album. It requires an internet connection.

Install

$ pip3 install pibooth-google-photo

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.

[GOOGLE]

# Album where pictures are uploaded
album_name = Pibooth

# Credentials file downloaded from Google API
client_id_file =

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 Google Photos album is granted by a Credentials file that shall be defined in the [GOOGLE][client_id_file] configuration key. This file does not contain your Google credentials and it can not be used by an other application than pibooth.

It contains the Google Photos API key (Client ID and Client Secret) generated by following the instructions:

step1_shortcut_button

Go to Google Photos Library API and click on Enable the Google Photos Library API.

step2_project_name

Enter a project name (for instance pibooth) and click on NEXT.

step3_display_name

Enter a text to be displayed on user consent page when you will start pibooth with pibooth-google-photo enabled for the first time (for instance Pibooth) and click on NEXT.

step4_app_type

Select the application type: Desktop app.and click on CREATE.

step5_download

Download the credential file, save it somewhere accessible by pibooth and click on DONE.

The content of the Credentials file looks like this:

{
    "installed":
        {
        "client_id": "8723982792-sdjfhdkjhvfkd76.apps.googleusercontent.com",
        "client_secret": "HJAHZhjhi_HJI789798giEdPIbJ",
        "auth_uri": "https://accounts.google.com/o/oauth2/auth",
        "token_uri": "https://www.googleapis.com/oauth2/v3/token",
        "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
        "redirect_uris": ["urn:ietf:wg:oauth:2.0:oob","http://localhost"]
        }
}

Download files

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

Source Distribution

pibooth_google_photo-1.2.1.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pibooth_google_photo-1.2.1-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file pibooth_google_photo-1.2.1.tar.gz.

File metadata

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

File hashes

Hashes for pibooth_google_photo-1.2.1.tar.gz
Algorithm Hash digest
SHA256 444d14f95c02ca74d63313de43628c40c8f8e64a38a37e97851c7dbe2bd40396
MD5 32fb21bacdc2e5a60722247d5f39ea2c
BLAKE2b-256 1cdf67eff9c60868acb05cf09ffeda2f7d69108ff0bec9eb928bb634275d00c3

See more details on using hashes here.

File details

Details for the file pibooth_google_photo-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pibooth_google_photo-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f9bf93126a22cc20a812500f2a51b97706f847038ebc27cc01341c6c2e5ec49d
MD5 f7e2c56d1284147f95c5cb858aad20bb
BLAKE2b-256 7c5fb864ae6b00befb730dcb8fd9612bf0aa96a282f9fa0aff80ae7761db3637

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.3

2 files

1.2.2

2 files

This release

1.2.1 This release

2 files

1.2.0

1 file

1.1.1

1 file

1.1.0

1 file

1.0.2

1 file

1.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page