--- id: google-oauth version: "1.0.1" license: MIT License license_treatment: permissive maintenance: abandoned --- # google-oauth — OAuth2 for Google APIs License: permissive · Maintenance: abandoned · Downloads: 251.0K/mo ## 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 above — verify before relying. Implements Google OAuth2 authentication for service accounts, enabling server-to-server API access using JSON or PKCS12 credentials. 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 pip install google-oauth uv add google-oauth poetry add google-oauth ## Installing google-oauth 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. 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 Requires pyOpenSSL build dependencies; on Debian-based systems install libssl-dev. Package supports Python 2.7 or 3.3+. 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: unspecified - Install friction: high - Maintenance: abandoned - Downloads: 251.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags google oauth2 service account, google api authentication, server to server oauth, google service account jwt, google api access token, oauth2 google credentials, google service authentication, oauth2, google-apis, abandoned [View on SkillFed](https://skillfed.io/packages/google-oauth) · [View on PyPI](https://pypi.org/project/google-oauth/)