bq.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:big-orm 作者: junyiacademy 项目源码 文件源码
def __init__(self, project_id, credential_path):
        self.credential_path = credential_path
        self.project_id = project_id
        scopes = ['https://www.googleapis.com/auth/bigquery']
        credentials = ServiceAccountCredentials.from_json_keyfile_name(
            credential_path, scopes)
        http_auth = credentials.authorize(Http())
        bigquery = build('bigquery', 'v2', http=http_auth)
        self.bigquery = bigquery
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号