pydata-google-auth 1.9.1


pip install pydata-google-auth

  Latest version

Released: Jan 23, 2025

Project Links

Meta
Author: The PyData Development Team
Requires Python: >=3.9

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • Console

Intended Audience
  • Science/Research

Operating System
  • OS Independent

Programming Language
  • Python
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

Topic
  • Scientific/Engineering

License
  • OSI Approved :: BSD License

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.

Wheel compatibility matrix

Platform Python 2 Python 3
any

Files in release

Extras: None
Dependencies:
setuptools
google-auth (<3.0dev,>=1.25.0)
google-auth-oauthlib (>=0.4.0)