{"id":14603,"library":"google-api","title":"Google API Wrapper (Unofficial, Abandoned)","description":"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.","status":"abandoned","version":"0.1.12","language":"en","source_language":"en","source_url":"https://github.com/vimeo/google-api","tags":["google","api","wrapper","abandoned","deprecated","security"],"install":[{"cmd":"pip install google-api","lang":"bash","label":"Install `google-api` (Not Recommended)"},{"cmd":"pip install google-api-python-client","lang":"bash","label":"Install Official Google API Client (Recommended Alternative)"}],"dependencies":[],"imports":[{"note":"This import path is for the *abandoned* `google-api` package. The correct import for the *official* client uses `googleapiclient`.","wrong":"from googleapiclient.discovery import build","symbol":"GoogleApi","correct":"from google_api import GoogleApi"}],"quickstart":{"code":"# WARNING: This code is for the abandoned 'google-api' package.\n# DO NOT USE IN PRODUCTION. Use 'google-api-python-client' instead.\n\nfrom google_api import GoogleApi\n\n# Placeholder for a (formerly) valid access token.\n# In a real (modern) scenario, use proper OAuth2 flow for `google-api-python-client`.\nACCESS_TOKEN = \"your_deprecated_access_token_here\"\n\ntry:\n    client = GoogleApi(access_token=ACCESS_TOKEN)\n    # Example: Attempt to fetch user info (functionality might be broken due to API changes)\n    # user_info = client.oauth2().userinfo().get().execute()\n    print(\"WARNING: This quickstart uses the abandoned 'google-api' package.\")\n    print(\"Its functionality is likely broken and it is not secure.\")\n    # print(f\"User Info (from abandoned client): {user_info}\")\nexcept Exception as e:\n    print(f\"An error occurred (expected for an abandoned client): {e}\")\n    print(\"Please migrate to the official 'google-api-python-client'.\")\n","lang":"python","description":"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."},"warnings":[{"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.","message":"This library (`google-api`) is unofficial, abandoned, and has not been updated since 2015. It is not the official Google API Client Library for Python.","severity":"breaking","affected_versions":"<=0.1.12"},{"fix":"Discontinue use of this package. The official and secure way to interact with Google APIs is through the `google-api-python-client`.","message":"Using 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.","severity":"gotcha","affected_versions":"<=0.1.12"},{"fix":"When migrating to the official client, completely rewrite import statements and API interaction patterns. Consult the `google-api-python-client` documentation.","message":"The 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.","severity":"deprecated","affected_versions":"<=0.1.12"},{"fix":"Always verify the package name and its actual repository/documentation to ensure you are using the correct, officially supported library.","message":"The 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.","severity":"gotcha","affected_versions":"<=0.1.12"}],"env_vars":null,"last_verified":"2026-04-15T00:00:00.000Z","next_check":"2026-07-14T00:00:00.000Z","problems":[],"ecosystem":"pypi"}