PyData helpers for authenticating to Google APIs
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydata-google-auth-1.4.0.tar.gz
(27.8 kB
view hashes)
Built Distribution
Close
Hashes for pydata_google_auth-1.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0a1e7407adac70d1dbf4f95cc427934556c7c0c41c795ca6f9b969dbb082b2e |
|
MD5 | 99c59209dca2d6ea4c1819ab8172287d |
|
BLAKE2b-256 | 8882af4c2283d06fdb893029de825500c201116b7993880a5238c6d28b243f54 |