Skip to content

shobsi/pydata-google-auth

 
 

Repository files navigation

pydata-google-auth

Build Status Version Status Coverage Status

pydata-google-auth is a package providing helpers for authenticating to Google APIs.

Installation

Install latest release version via conda

$ conda install pydata-google-auth --channel conda-forge

Install latest release version via pip

$ pip install pydata-google-auth

Install latest development version

$ pip install git+https://github.com/pydata/pydata-google-auth.git

Usage

Use the pydata_google_auth.get_user_credentials() function to authenticate to Google APIs with user credentials.

import pydata_google_auth
credentials = pydata_google_auth.get_user_credentials(
    ['https://www.googleapis.com/auth/cloud-platform'],
)

# Use the credentials in other libraries, such as the Google BigQuery
# client library.
from google.cloud import bigquery
client = bigquery.Client(project='YOUR-PROJECT-ID', credentials=credentials)

See the pydata-google-auth documentation for more details.

About

A package providing helpers for authenticating to Google APIs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%