Skip to main content

google-auth-core

Single source of truth for the ~/.google credential store, shared by the Google CLIs (gmail-cli, google-calendar-cli) and the Google Workspace MCP servers (gmail-mcp, gcal-mcp, gsheets-mcp, gdocs-mcp, gdrive-mcp).

What it provides

  • A unified per-account token store under ~/.google/tokens/google_<account>.json holding all scopes (Gmail + Calendar + Sheets + Docs + Drive), so one consent covers every service for both CLIs and MCP servers.
  • Account management: default account, aliases (work, personal), env and directory overrides.
  • get_service(api, version, account): an authorized googleapiclient service, cached per (account, api, version) for persistent, multi-account-safe use.
  • A consistent error taxonomy (AuthError, NotFoundError, RateLimitError, InvalidArgumentError, UpstreamError) and map_http_error.

CLI

google-auth login [account]        # one-time OAuth, writes a unified token
google-auth list                   # accounts, default, aliases
google-auth alias work you@work.com
google-auth status                 # token health per account
google-auth default you@work.com
google-auth logout you@work.com

Place your OAuth client (Desktop app) at ~/.google/credentials.json first.

Metadata

Release files for google-auth-core 0.2.0

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

Source distribution (sdist)

Source distribution for google-auth-core 0.2.0
File Size Uploaded
google_auth_core-0.2.0.tar.gz 22.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for google-auth-core 0.2.0
File Interpreter ABI Platform
google_auth_core-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 43.7 kB

Release files / google_auth_core-0.2.0.tar.gz

Download URL google_auth_core-0.2.0.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e7fcf1ca96defc119fa90424f9ef7ec9d508ccc30d7d35ce820d25d179dfeaaf
BLAKE2b-256 checksum
How to use checksums
4bd7ec9db9e8362f4984ec275a13d42ddc83c37bfc8bb1fbfb28814f798eb8b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / google_auth_core-0.2.0-py3-none-any.whl

Download URL google_auth_core-0.2.0-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
588bbea2b57833669b6b3513a53a141d23672b541aadae02e2d3b7cdbe886ca3
BLAKE2b-256 checksum
How to use checksums
b7ff87b769198f67315fae9b8c56ccaa04c91ba1dc0ad27eea7ea298a67f97dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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