Google BigQuery API client library
Project description
Querying massive datasets can be time consuming and expensive without the right hardware and infrastructure. Google BigQuery solves this problem by enabling super-fast, SQL queries against append-mostly tables, using the processing power of Google’s infrastructure.
Quick Start
In order to use this library, you first need to go through the following steps:
Installation
Install this library in a virtualenv using pip. virtualenv is a tool to create isolated Python environments. The basic problem it addresses is one of dependencies and versions, and indirectly permissions.
With virtualenv, it’s possible to install this library without needing system install permissions, and without clashing with the installed system dependencies.
Supported Python Versions
Python >= 3.5
Deprecated Python Versions
Python == 2.7. Python 2.7 support will be removed on January 1, 2020.
Mac/Linux
pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-cloud-bigquery
Windows
pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-cloud-bigquery
Example Usage
Perform a query
from google.cloud import bigquery
client = bigquery.Client()
# Perform a query.
QUERY = (
'SELECT name FROM `bigquery-public-data.usa_names.usa_1910_2013` '
'WHERE state = "TX" '
'LIMIT 100')
query_job = client.query(QUERY) # API request
rows = query_job.result() # Waits for query to finish
for row in rows:
print(row.name)
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
Built Distribution
Hashes for google-cloud-bigquery-1.19.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8a2765650cbbb5966f8ebf00621faa96c575dc29feae67820b51a442ee2ff92 |
|
MD5 | d616d2243b91774808be54d28056cdd8 |
|
BLAKE2b-256 | 9ac7a3d5309c5616cfae1830f2ab4939369aa2109eca92ddfd4b7883bafe1df8 |
Hashes for google_cloud_bigquery-1.19.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4744401c9b3e0138b2b082d96abebcc2fd46a1081b2938a28aec3e1910427cdf |
|
MD5 | b34e08cb13328dcbb4836ed668f7dac4 |
|
BLAKE2b-256 | 9de544a1be0b850cd74d6f2d05f0d338049fe9206c5323faa246116e1c76bff2 |