Alpha Client Libraries

Installing the Python client library

Python

pip install https://storage.googleapis.com/api-client-staging/vision-python-q1alpha-mar2019.tar.gz

Authentication

To use the alpha client library, you must create and activate a service account.

  1. Install the Google Cloud CLI.

  2. Create a service account.

  3. Create a service account key and download the JSON key file.

  4. Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to point to your service account key file. This enables your client libraries to use Application Default Credentials (ADC).

    export GOOGLE_APPLICATION_CREDENTIALS=path-to-key-file
  5. Authenticate by running the following command:

    gcloud auth login