{"id":18560977,"url":"https://github.com/pibooth/pibooth-google-photo","last_synced_at":"2025-04-10T02:31:16.023Z","repository":{"id":41887651,"uuid":"257281552","full_name":"pibooth/pibooth-google-photo","owner":"pibooth","description":"Pibooth plugin to upload pictures on Google Photos","archived":false,"fork":false,"pushed_at":"2023-05-17T05:57:40.000Z","size":362,"stargazers_count":9,"open_issues_count":2,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-24T15:42:01.375Z","etag":null,"topics":["google-photos","photo-booth","photobooth","plugin","raspberry-pi","raspberrypi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pibooth.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-20T12:58:43.000Z","updated_at":"2024-11-05T17:55:49.000Z","dependencies_parsed_at":"2024-11-06T22:06:30.744Z","dependency_job_id":"b4f3430b-843f-47fb-85e4-2dbca228f64b","html_url":"https://github.com/pibooth/pibooth-google-photo","commit_stats":{"total_commits":35,"total_committers":3,"mean_commits":"11.666666666666666","dds":"0.48571428571428577","last_synced_commit":"611696991a4ef2e538a2e2a35ecf8c141bf0afc7"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pibooth%2Fpibooth-google-photo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pibooth%2Fpibooth-google-photo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pibooth%2Fpibooth-google-photo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pibooth%2Fpibooth-google-photo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pibooth","download_url":"https://codeload.github.com/pibooth/pibooth-google-photo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248144197,"owners_count":21054882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-photos","photo-booth","photobooth","plugin","raspberry-pi","raspberrypi"],"created_at":"2024-11-06T22:05:21.293Z","updated_at":"2025-04-10T02:31:15.534Z","avatar_url":"https://github.com/pibooth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n====================\npibooth-google-photo\n====================\n\n|PythonVersions| |PypiPackage| |Downloads|\n\n``pibooth-google-photo`` is a plugin for the `pibooth`_ application.\n\nIts permits to upload the pictures to a `Google Photos`_ album. It requires an\ninternet connection.\n\nInstall\n-------\n\n::\n\n    $ pip3 install pibooth-google-photo\n\nConfiguration\n-------------\n\nHere below the new configuration options available in the `pibooth`_ configuration.\n**The keys and their default values are automatically added to your configuration after first** `pibooth`_ **restart.**\n\n.. code-block:: ini\n\n    [GOOGLE]\n\n    # Album where pictures are uploaded\n    album_name = Pibooth\n\n    # Credentials file downloaded from Google API\n    client_id_file =\n\n.. note:: Edit the configuration by running the command ``pibooth --config``.\n\nPicture URL\n-----------\n\nUploaded picture URL is set to ``app.previous_picture_url`` attribute at the end of\n`processing` state (``state_processing_exit`` hook).\n\n.. warning:: for security reason, URL will expire in 1 hour.\n\nGrant secured access\n--------------------\n\nAccess to a Google Photos album is granted by a **Credentials file** that shall\nbe defined in the ``[GOOGLE][client_id_file]`` configuration key. This file does\nnot contain your Google credentials and it can not be used by an other application\nthan `pibooth`_.\n\nIt contains the `Google Photos`_ API key (Client ID and Client Secret) generated\nby following the instructions:\n\n\n===========  ==================================================================\n |step1|     `Go to Google Photos Library API \u003chttps://developers.google.com/photos/library/guides/get-started\u003e`_\n             and click on ``Enable the Google Photos Library API``.\n\n |step2|     Enter a project name (for instance **pibooth**) and click on\n             ``NEXT``.\n\n |step3|     Enter a text to be displayed on user consent page when you will\n             start ``pibooth`` with ``pibooth-google-photo`` enabled for the\n             first time (for instance **Pibooth**) and click on ``NEXT``.\n\n |step4|     Select the application type: **Desktop app**.and click on\n             ``CREATE``.\n\n |step5|     Download the credential file, save it somewhere accessible by\n             `pibooth` and click on ``DONE``.\n===========  ==================================================================\n\nThe content of the **Credentials file** looks like this:\n\n.. code-block:: json\n\n    {\n        \"installed\":\n            {\n            \"client_id\": \"8723982792-sdjfhdkjhvfkd76.apps.googleusercontent.com\",\n            \"client_secret\": \"HJAHZhjhi_HJI789798giEdPIbJ\",\n            \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n            \"token_uri\": \"https://www.googleapis.com/oauth2/v3/token\",\n            \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n            \"redirect_uris\": [\"urn:ietf:wg:oauth:2.0:oob\",\"http://localhost\"]\n            }\n    }\n\n.. note:: At the first connection, allow ``pibooth`` to use `Google Photos`_ in\n          the opened web browser window.\n\n.. --- Links ------------------------------------------------------------------\n\n.. _`pibooth`: https://pypi.org/project/pibooth\n\n.. _`Google Photos`: https://photos.google.com\n\n.. |PythonVersions| image:: https://img.shields.io/badge/python-3.6+-red.svg\n   :target: https://www.python.org/downloads\n   :alt: Python 3.6+\n\n.. |PypiPackage| image:: https://badge.fury.io/py/pibooth-google-photo.svg\n   :target: https://pypi.org/project/pibooth-google-photo\n   :alt: PyPi package\n\n.. |Downloads| image:: https://img.shields.io/pypi/dm/pibooth-google-photo?color=purple\n   :target: https://pypi.org/project/pibooth-google-photo\n   :alt: PyPi downloads\n\n.. --- Tuto -------------------------------------------------------------------\n\n.. |step1| image:: https://github.com/pibooth/pibooth-google-photo/blob/master/docs/images/step1_shortcut_button.png?raw=true\n   :width: 80 %\n   :alt: step1_shortcut_button\n\n.. |step2| image:: https://github.com/pibooth/pibooth-google-photo/blob/master/docs/images/step2_project_name.png?raw=true\n   :width: 80 %\n   :alt: step2_project_name\n\n.. |step3| image:: https://github.com/pibooth/pibooth-google-photo/blob/master/docs/images/step3_display_name.png?raw=true\n   :width: 80 %\n   :alt: step3_display_name\n\n.. |step4| image:: https://github.com/pibooth/pibooth-google-photo/blob/master/docs/images/step4_app_type.png?raw=true\n   :width: 80 %\n   :alt: step4_app_type\n\n.. |step5| image:: https://github.com/pibooth/pibooth-google-photo/blob/master/docs/images/step5_download.png?raw=true\n   :width: 80 %\n   :alt: step5_download\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpibooth%2Fpibooth-google-photo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpibooth%2Fpibooth-google-photo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpibooth%2Fpibooth-google-photo/lists"}