跳转到主要内容

PyData用于验证Google API的助手

项目描述

Build Status Version Status Coverage Status

pydata-google-auth是一个提供验证Google API助手功能的包。

安装

通过conda安装最新发布版本

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

通过pip安装最新发布版本

$ pip install pydata-google-auth

安装最新开发版本

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

用法

使用pydata_google_auth.get_user_credentials()函数使用用户凭据验证Google API。

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)

有关更多详细信息,请参阅pydata-google-auth文档

项目详情


下载文件

下载您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分发

pydata-google-auth-1.8.2.tar.gz (29.7 kB 查看哈希)

上传时间

构建分发

pydata_google_auth-1.8.2-py2.py3-none-any.whl (15.3 kB 查看哈希)

上传时间 Python 2 Python 3

支持