Skip to main content

Connect to Google Service API's

Project description

libgoogle

Connect to Google services.

The libgoogle package provides a function to connect to a google service (such as Calendar, Drive and Mail), and manage credentials and access tokens under the xdg schema.

function connect_to_google

Connect to Google service identified by scope and version.

Args: scope: (valid examples): "https://www.googleapis.com/auth/gmail" "https://www.googleapis.com/auth/gmail.readonly" "gmail" "gmail.readonly" "drive.metadata.readonly" "photoslibrary.readonly"

version:        "v1", "v3", etc.

Files: credentials: XDG_CONFIG_HOME / libgoogle / credentials.json Must exist, or raises FileNotFoundError.

token:          XDG_CACHE_HOME / libgoogle / {scope}-token.json

function set_debug

Turn on/off low-level httplib2 debugging.

Args: flag: True to turn on debugging, False to turn off.

function use_cache

Use cache or not.

Args: flag: True to use cache, False to not.

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

rlane_libgoogle-1.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

rlane_libgoogle-1.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file rlane_libgoogle-1.0.1.tar.gz.

File metadata

  • Download URL: rlane_libgoogle-1.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for rlane_libgoogle-1.0.1.tar.gz
Algorithm Hash digest
SHA256 afa61cdd6e3eb7aaf1b9c2e00a66cb6c027387ef76a35311b154083c5b8bee97
MD5 3cb213ab0fedd8be2f6656b7b31c814d
BLAKE2b-256 9468e35b53654feb7d648887c16f5fd670d9f84748c8fa6c6f137bc164a1ec0d

See more details on using hashes here.

File details

Details for the file rlane_libgoogle-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for rlane_libgoogle-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f490274e22ff083ca0e83f1c6454bea3ea0e0a791326c2eab33ef946dd8ff78
MD5 123bf5d65daa120f3731dfbe934a03a7
BLAKE2b-256 9101778dbbe41d0ed5fb0b0dfaa3d3d195dba5d228b1ed292f84225b0171950e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page