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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rlane_libgoogle-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 c4c37949d156ae7aa1745b2af8d17e9b4cf40cb8d4b108fff9af528ce67ca587
MD5 22040e4b460a73bcc772e31ff21cd727
BLAKE2b-256 6bbc659e8a9e0fbc26bc03981c3c2a8eb1b4b03ad00f5fb5978d50919ec1a60a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlane_libgoogle-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c17c82de0317c98d1975bb210c4ffa8063fc0781d30bde913ff80d3540dbd23a
MD5 e2d90e1d2084ab7a4d13ce02141d8c57
BLAKE2b-256 f218f4fc3269501583a02d9987274fb212328a821f72f352b5c034c047ccdab3

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