Registry / gcp / google-api

google-api

JSON →
library0.1.12pypiunverified

This `google-api` library (version 0.1.12, last updated 2015) is an unofficial and unmaintained Python wrapper for Google APIs. It is NOT the official Google API Client Library for Python, which is `google-api-python-client`. Users should avoid this package due to its abandonment and potential security vulnerabilities.

pip install google-api
INSTALL
IMPORT
SIG · GOOGLE-API
G
google-api
gcpenv0.1.12
Install
3.4s avg
Import
Disk
254MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.12 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 216.9MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 3.4s · import 0.000s · 288MB
254MB installed
● package 254MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GoogleApi
from google_api import GoogleApi
from googleapiclient.discovery import build
This import path is for the *abandoned* `google-api` package. The correct import for the *official* client uses `googleapiclient`.

This quickstart demonstrates the former usage pattern of the `google-api` package. Due to its abandonment, this code is likely non-functional or insecure with current Google APIs. It is included purely for historical context and to highlight the difference from the official client.

# WARNING: This code is for the abandoned 'google-api' package. # DO NOT USE IN PRODUCTION. Use 'google-api-python-client' instead. from google_api import GoogleApi # Placeholder for a (formerly) valid access token. # In a real (modern) scenario, use proper OAuth2 flow for `google-api-python-client`. ACCESS_TOKEN = "your_deprecated_access_token_here" try: client = GoogleApi(access_token=ACCESS_TOKEN) # Example: Attempt to fetch user info (functionality might be broken due to API changes) # user_info = client.oauth2().userinfo().get().execute() print("WARNING: This quickstart uses the abandoned 'google-api' package.") print("Its functionality is likely broken and it is not secure.") # print(f"User Info (from abandoned client): {user_info}") except Exception as e: print(f"An error occurred (expected for an abandoned client): {e}") print("Please migrate to the official 'google-api-python-client'.")
Debug
Known issues
breakingThis library (`google-api`) is unofficial, abandoned, and has not been updated since 2015. It is not the official Google API Client Library for Python.
fix
Migrate immediately to the official `google-api-python-client` (pip install google-api-python-client) for all Google API interactions. Refer to Google's official documentation for usage.
affects: <=0.1.12
gotchaUsing this `google-api` package can lead to security vulnerabilities, compatibility issues with modern Google APIs, and broken functionality due to unaddressed API changes and lack of security patches.
fix
Discontinue use of this package. The official and secure way to interact with Google APIs is through the `google-api-python-client`.
affects: <=0.1.12
deprecatedThe import path `from google_api import ...` is specific to this abandoned package. The official client uses `from googleapiclient.discovery import build` and other `googleapiclient` modules.
fix
When migrating to the official client, completely rewrite import statements and API interaction patterns. Consult the `google-api-python-client` documentation.
affects: <=0.1.12
gotchaThe PyPI homepage for `google-api` misleadingly points to the official `google-api-python-client` repository, causing confusion. The `google-api` package content itself corresponds to an entirely separate, abandoned project.
fix
Always verify the package name and its actual repository/documentation to ensure you are using the correct, officially supported library.
affects: <=0.1.12
Upgrade
Version history
0.1.12latest on PyPI · released Sep 5, 2017
Audit
Dependencies

No dependency data recorded yet.

Agent activity
41 hits · last 30 days
node
36
OpenAI (training)
1
Resources

No resource links recorded.

google-api — pip install google-api · libregistry