Skip to main content

gp_wrapper v=0.9.11

A Google Photos API wrapper library

  • Official API is already supported

What does this package offer?

Support for all of the official API and more convenience function as well. A-lot of well defined API inspired Classes and Enums to simplify the usage.

  • GooglePhotos class - wrapper over authenticated HTTP session
  • Album Class - handles all of the global and instance methods for an Album
  • MediaItem Class - handles all of the global and instance methods for MediaItem
  • Enums: RequestType, HeaderType, MimeType, PositionType, EnrichmentType, MediaItemMaskTypes, AlbumMaskType, RelativeItemType, StatusCode
  • Classes: SimpleMediaItem, NewMediaItem, AlbumPosition, Status, MediaItemResult, MediaMetadata, ContributorInfo

Quick Start

  1. Create a Google Cloud Console project
  2. Enable google photos API here
  3. Fill information here
    1. Fill application name and detail
    2. Apply scopes
      1. https://www.googleapis.com/auth/photoslibrary,
      2. https://www.googleapis.com/auth/photoslibrary.appendonly
      3. https://www.googleapis.com/auth/photoslibrary.sharing
      4. https://www.googleapis.com/auth/photoslibrary.edit.appcreateddata
    3. Add a google account as a Test User which will be able to use you project as an 'end user'
  4. Extract relevant data for client_secrets.json
  5. Install:
    • From PyPI: pip install gp_wrapper or uv add gp_wrapper
    • Local development (this repo): uv sync (runtime) or uv sync --group dev (mypy, pylint, pytest, quickpub, …)
    • Publish a new version: bump VERSION in publish.py, then uv run --all-groups python publish.py (quickpub 4.1.3+; needs .pypirc)
  6. See example here

Metadata

Release files for gp-wrapper 0.9.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gp-wrapper 0.9.11
File Size Uploaded
gp_wrapper-0.9.11.tar.gz 45.3 kB Details

Release files / gp_wrapper-0.9.11.tar.gz

Download URL gp_wrapper-0.9.11.tar.gz
Size 45.3 kB
Tags Source
SHA-256 checksum
How to use checksums
de83530fb9f51a5447baa63d2b0bdde7b9f618e74031ed60f80f58dc2632d919
BLAKE2b-256 checksum
How to use checksums
cd77a32ea5b2929934dfef394684ae49121633fc49c006a08afafb6676d34b49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.19

Release history Release notifications | RSS feed

0.9.12

1 release file

This release

0.9.11 This release

1 release file

0.9.10

1 release file

0.9.9

2 release files

0.9.8

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

0.8.9

1 release file

0.8.8

1 release file

0.8.7

1 release file

0.8.6

1 release file

0.8.5

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.8.0

1 release file

0.2.4

1 release file

0.2.0

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release 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