google-oauth
OAuth2 for Google APIs
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release 2016-03-28, no commits since 2016-08-06) and will not receive security updates or compatibility fixes. High install friction from pyOpenSSL dependencies and lack of support for modern Python versions make it a poor choice for new projects. Use the official google-auth library instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires pyOpenSSL build dependencies; on Debian-based systems install libssl-dev.
- Package supports Python 2.7 or 3.3+.
- High install friction due to pyOpenSSL build dependency requiring system-level OpenSSL headers (libssl-dev on Debian).
License · maintenance · safety
MIT License (permissive) — MIT License permits commercial and private use with minimal restrictions, making it legally safe to adopt if you accept the maintenance risk.
last release 2016-03-28 (3791 days) · last repo commit 2016-08-06 · 4 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 250,965 downloads/mo, #8,607 on PyPI
Alternatives
Verify before relying
pip install google-oauth
import json
from google_oauth import ServiceAccount
key = json.load(open('/path/to/credentials.json'))
auth = ServiceAccount.from_json(key=key, scopes=['https://www.googleapis.com/auth/plus.login'])
token = auth.access_token- Whether the package works with current Google OAuth2 API endpoints and security standards
- Compatibility with modern Python versions beyond 3.3+
- Whether access tokens are properly refreshed or if manual refresh is required
What it is and what it does
google-oauth is a Python library that handles OAuth2 authentication for Google service accounts, allowing server-to-server communication with Google APIs. It supports creating service account objects from JSON or PKCS12 credentials and provides methods to obtain and use OAuth2 access tokens. The library wraps the requests library to automatically attach proper Authorization headers to API calls.
The package implements only the service account (two-legged) OAuth2 flow, not the three-legged flow for web applications. It caches access tokens to avoid unnecessary token requests and provides a convenient shortcut method for making authenticated API calls. However, the package has been abandoned since its initial release in March 2016 and receives no maintenance, meaning it may not work with current Google API changes or modern Python security practices.
Use it for
- Authenticate a backend service to call Google APIs (e.g., Google+ search, Gmail) without user interaction
- Automate Google API calls from a scheduled job or daemon using service account credentials
- Build a microservice that needs to access Google APIs with a fixed set of scopes and permissions
- Implement JWT-based authentication for Google service accounts in legacy Python 2/3 codebases
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release 2016-03-28, no commits since 2016-08-06) and will not receive security updates or compatibility fixes. High install friction from pyOpenSSL dependencies and lack of support for modern Python versions make it a poor choice for new projects. Use the official google-auth library instead.
Install
google-oauth on PyPI
Before you install
High install friction due to pyOpenSSL build dependency requiring system-level OpenSSL headers (libssl-dev on Debian). Package is abandoned as of 2016-08-06 with no maintenance since initial release.
Requires pyOpenSSL build dependencies; on Debian-based systems install libssl-dev. Package supports Python 2.7 or 3.3+.
License in practice
MIT License permits commercial and private use with minimal restrictions, making it legally safe to adopt if you accept the maintenance risk.
Quickstart
pip install google-oauth
import json
from google_oauth import ServiceAccount
key = json.load(open('/path/to/credentials.json'))
auth = ServiceAccount.from_json(key=key, scopes=['https://www.googleapis.com/auth/plus.login'])
token = auth.access_token
Verify before relying
- Whether the package works with current Google OAuth2 API endpoints and security standards
- Compatibility with modern Python versions beyond 3.3+
- Whether access tokens are properly refreshed or if manual refresh is required
Package facts
| License | MIT License permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 3,791 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 250,965 / month, #8,607 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Internet |
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “google oauth2 service account”
- google-oauthImplements Google OAuth2 authentication for service accounts,…
- gcs-oauth2-boto-pluginProvides OAuth 2.0 authentication for Google Cloud Storage access…
- google-auth-oauthlibIntegrates oauthlib with google-auth to handle OAuth 2.0…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also gcs-oauth2-boto-plugin · pydata-google-auth · google-auth-oauthlib · google-oauth2-tool · google-auth · oauth2client · oauth2-client · oauth2 · cloudauthz · django-google-sso