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.4.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.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rlane_libgoogle-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 9ee6e2b81f214e0f576900098f6953c6683b42d0cc67839cfea4405534970490
MD5 fa56c23330a274c6549dd733a8afc0d1
BLAKE2b-256 14ef381f8748b0b4244d4b8af74f4c5e8dabf8fa19b04070fd7def818ffb51b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlane_libgoogle-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cd1bd1212e58c426ad8a7085a73a574283087aae3c1d952c850b94ae5f823135
MD5 02b2b70e8049d4e4658d58920c27901a
BLAKE2b-256 6bf10179d0dc557fe860564e9a034667e010986e79ccebadf8900444b71a5f5f

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