Skip to main content

Connect to Google Service API's

Project description

libgoogle

Connect to Google Service API's.

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

connect(scope: str, version: str) -> googleapiclient.discovery.Resource
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

set_debug(flag: bool) -> None
Turn on/off low-level `httplib2` debugging.

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

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.3.tar.gz (4.0 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.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rlane_libgoogle-1.0.3.tar.gz
  • Upload date:
  • Size: 4.0 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.3.tar.gz
Algorithm Hash digest
SHA256 05f4f71ffe6ef12d87cd41da26992cb904e52efad6d932f1d3df26051ed29f35
MD5 49154490154213f84c946108424653e4
BLAKE2b-256 d205f25816fd9cb3c27edfca9c36951a3aabc7af42ef0a225651a12cd70dccca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlane_libgoogle-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8d77feeddc0f57855aa8196447aaee48b7b0a45b8e8dcfe244e7d5da05b509ff
MD5 156a9f58e0daec15cb2c0e61e0c3d155
BLAKE2b-256 5a8c64b929544e9908e8d3e140b4ecb78e99a849c58337f4487e068b57cda0c3

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