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.9.0.tar.gz
(29.8 kB
view details)
Built Distribution
File details
Details for the file pydata-google-auth-1.9.0.tar.gz
.
File metadata
- Download URL: pydata-google-auth-1.9.0.tar.gz
- Upload date:
- Size: 29.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f546e88f007dfdb050087556eb46d6008e351386a7b368096797fae5df374f2 |
|
MD5 | 2f33c13c3ab535da877816e804821d4d |
|
BLAKE2b-256 | 969251140850fa44d33f41a393df4767d3f7bd63169e1edc2358397f2a5b57bb |
File details
Details for the file pydata_google_auth-1.9.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pydata_google_auth-1.9.0-py2.py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e17a44ce8de5b48883667357c03595b85d80938bf1fb714d65bfac9a9f9c8add |
|
MD5 | b852248684c9a9d044431d5ee7007652 |
|
BLAKE2b-256 | 073491cf24101f7c456c0d9be43b975396772481c26e4b218c78f71769ee0555 |