skillfed

google-oauth2-tool

Create OAuth2 key file from OAuth2 client id file

google-oauth2-tool v0.0.3 286.6K downloads/30d#8,040 on PyPI0
Permissive license BSD Abandoned released

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-tool

uv

uv add google-oauth2-tool

poetry

poetry add google-oauth2-tool

Installing 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

Development Status :: 3 - AlphaEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Dynamic Content

Tags

google oauth2 key generationoauth2 client credentials convertergoogle api authentication setupoauth2 key file from client idgoogle oauth2 command line tool
oauth2google-apicredentials

More WWW/HTTP packages