google-oauth2-tool
Create OAuth2 key file from OAuth2 client id file
What it is and what it does
google-oauth2-tool is a lightweight command-line wrapper around the oauth2client.tools module that automates the conversion of a Google OAuth2 client ID file into an OAuth2 key file. It takes a client ID JSON file and a scopes file as input and generates the corresponding OAuth2 credentials file, optionally stripping unnecessary fields. The tool is designed for developers setting up Google API authentication locally.
The package depends on 11 runtime libraries including google-auth, oauth2client, httplib2, and cryptographic utilities (rsa, pyasn1). It was last updated in May 2019 and is no longer maintained, so it may not reflect current Google API authentication practices or security standards.
Use it for:
- Automating OAuth2 credential generation during local development setup for Google API integrations.
- Converting Google OAuth2 client credentials into a format compatible with oauth2client-based applications.
- Batch processing multiple client ID files to generate corresponding OAuth2 key files with specified scopes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Generates an OAuth2 key file from a Google OAuth2 client ID file, wrapping the oauth2client.tools module for command-line use.
No. The package is abandoned (last commit April 2021, no updates since May 2019) and oauth2client itself is deprecated by Google in favor of google-auth. Unless you are maintaining legacy code that specifically depends on oauth2client, you should use google-auth directly or Google's current authentication libraries. The risk of incompatibility with modern Google API versions is high.
Install
google-oauth2-tool on PyPI
pip
pip install google-oauth2-tooluv
uv add google-oauth2-toolpoetry
poetry add google-oauth2-toolInstalling google-oauth2-tool
Before you install
Low install friction with a pure-Python wheel, but the package is abandoned as of 2021 with no maintenance since its last release in May 2019. The 11 runtime dependencies include google-auth, oauth2client, and cryptographic libraries, which may themselves require updates for current Google API compatibility.
License in practice
BSD license is permissive and poses no restrictions on use or redistribution in most contexts.
Quickstart
pip install google-oauth2-tool
oauth2_tool --source=client_id.json --scope=scopes.txt --destination=oauth2_key.json
Requires a Google OAuth2 client ID JSON file and a scopes file; Google API credentials must be set up in the Google Developers console beforehand.
Verify before relying
- Whether oauth2client and google-auth dependencies remain compatible with current Google API versions despite the package's abandonment.
- Whether the tool works with modern Google OAuth2 flows or if Google's authentication requirements have changed since 2019.
Package facts
| License | BSD (permissive) |
| Python support | supports the current Python release (>=3.5) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 11 — cachetools, google-api-python-client, google-auth, google-auth-httplib2, httplib2, oauth2client, pyasn1, pyasn1-modules, rsa, six, uritemplate |
| Maintenance | abandoned — 2,662 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 286,580/month — #8,040 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: google_oauth2_tool-0.0.3-py2.py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
google-auth-oauthlibIntegrates oauthlib with google-auth to handle…
permissive · top 1,000 on PyPI
google-oauthImplements Google OAuth2 authentication for…
permissive · top 15,000 on PyPI
oauth2clientoauth2client is a deprecated OAuth 2.0 client…
permissive · top 1,000 on PyPI
oauth2-clientHandles OAuth2 authentication flows…
unclear · top 15,000 on PyPI
ovhLightweight Python wrapper for OVHcloud APIs…
permissive · top 15,000 on PyPI
gcs-oauth2-boto-pluginProvides OAuth 2.0 authentication for Google…
permissive · top 15,000 on PyPI
requests-oauth2clientAn OAuth 2.x client for Python that obtains,…
permissive · top 5,000 on PyPI
pydata-google-authProvides helper functions to authenticate to…
permissive · top 1,000 on PyPI
django-oauth-toolkitAdds OAuth2 authorization server capabilities…
permissive · top 5,000 on PyPI
stups-zignZign is a command-line utility for OAuth2 token…
permissive · top 15,000 on PyPI