New level of functionality and performance in data access via Python
Project description
Python Connector for Google BigQuery
Python Connector for Google BigQuery is a connectivity solution for accessing the Google BigQuery data warehouse from Python applications. It fully implements the Python DB API 2.0 specification. The connector is distributed as a wheel package for Windows and Windows Server.
GoogleSQL for BigQuery
The connector fully supports the BigQuery SQL dialects, data types, and query syntax, including functions, operators, and conditional expressions. Examples of supported BigQuery functions:
Connecting
To establish a connection to Google BigQuery, import the connector and use
the connect() method with your connection parameters.
Import the connector
First, import the BigQuery connector module:
import devart.bigquery as bigquery
Establish a connection
Call the connect() method with the connection parameters for your BigQuery server and obtain a connection object.
response = bigquery.signin()
my_connection = bigquery.connect(
ProjectId="your_project_id",
DataSetId="your_dataset_id",
RefreshToken=response["Refresh Token"]
)
Replace the example values with your actual connection values.
Querying data
Once connected, you can execute SQL queries to retrieve data from your BigQuery datasets.
Execute a query
Create a cursor object using the cursor() connection method.
my_cursor = my_connection.cursor()
Execute a SQL query using the execute() cursor method.
my_cursor.execute("SELECT * FROM employees")
Retrieve results using one of the fetch*() methods.
for row in my_cursor.fetchall():
print(row)
Parameterized queries
You can use parameterized queries to pass variable values to your SQL statements. This allows you to reuse the same query with different data and helps to prevent SQL injection attacks.
Pass parameters as a list or tuple to the execute() method:
query = "SELECT Id, Name FROM Contact WHERE Name = ? AND Email = ?"
params = ["Jordan Sanders", "jordansanders@example.com"]
my_cursor.execute(query, params)
results = my_cursor.fetchall()
for row in results:
print(row)
Each placeholder ? in the query is replaced with a corresponding value from the parameter list.
Ordering and activating the license
You can purchase a license for the connector on the ordering page:
https://www.devart.com/python/bigquery/ordering.html
To activate the license, follow the instructions in the documentation:
https://docs.devart.com/python/bigquery/activate-a-license.htm
What's new
Python Connector for Google BigQuery 1.3
- Added support for Python 3.14
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 Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devart_bigquery_connector-1.3.0-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8024383eaa7e3dbf1e33def15134b242d289e84991e9413fd94aeff73a2a3f4
|
|
| MD5 |
2bdd823ddda4f55ddbea8dffcb4df006
|
|
| BLAKE2b-256 |
eee2b1a3ef98eaf3e0c9240472f8333ce21cea5985544bcd324880bf228732fc
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp314-cp314-win32.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp314-cp314-win32.whl
- Upload date:
- Size: 5.4 MB
- Tags: CPython 3.14, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4417eecfb54426fc8bdf05acd6dafab68afd0cedf78b3c4cc39a0504778a275
|
|
| MD5 |
fb14b772ecc5f7ef79583b4a56a0886e
|
|
| BLAKE2b-256 |
2080d90e1396c69b76aef2d45683c5850a4818f6021866d31c3ab96287e5be33
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e2682e56bd5b5ebaccd9f816c9892c47de2c3ba533b0f6e363c67cd98e8e80f
|
|
| MD5 |
470d637d75911d0eb8e315a657cc508e
|
|
| BLAKE2b-256 |
967e89087d417e561712dff4c470edc5199fd695e433e6c74d70b3e0e7081e80
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp313-cp313-win32.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp313-cp313-win32.whl
- Upload date:
- Size: 5.4 MB
- Tags: CPython 3.13, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
210c31a4c95a43eeb553181bd6fd3e2aff623729104ebd9d5d4833abe7161c5e
|
|
| MD5 |
1d8ac071a7261b1578efdaa8970db30b
|
|
| BLAKE2b-256 |
8bab70dc5c0d732cf646e1c8e305705a4dc5cbcc21a1a482de6f99572d4578b0
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8f4e06f456fcab5eb1dcb88932e8fc071f6eeb491eb106bb456ea1dceba1103
|
|
| MD5 |
0faa01bf27ce72763c2163c905607ab2
|
|
| BLAKE2b-256 |
84e74dc2ccd4ceefade9627b3cf9fb14f82895d954997ed13280f84db7820e4b
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp312-cp312-win32.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp312-cp312-win32.whl
- Upload date:
- Size: 5.4 MB
- Tags: CPython 3.12, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67ad43ac9c24d546a91522b144f35172455a6e417dce58938ca43d2fa7bc12d2
|
|
| MD5 |
8b5a601436b4f7a2c5c9aaeb7f908594
|
|
| BLAKE2b-256 |
9a8d8d1ca9cd4044528c9aff3bbc91ae4be41c41466aa56aff0d38e8aaf92107
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3ae90ec726ce3893d682fd53e7d9baacfb56d5bd22e974cb5b21b99e2bde4f5
|
|
| MD5 |
6c4c1126487dcb22b1d48ce07edb6e3b
|
|
| BLAKE2b-256 |
16e5769fb1bfec97bb1ccf591acccfdbce82d92ee4dd5df15400e4b69af90548
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp311-cp311-win32.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp311-cp311-win32.whl
- Upload date:
- Size: 5.4 MB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65e8a2b39c1b85ce84748226beb8b31e6380f7ee3c318a9fd706d5fbbd645ae6
|
|
| MD5 |
87dad12398fef1471f020b7f87e8e0d0
|
|
| BLAKE2b-256 |
89f4142fdc7c470f4ceba10b43e66419fcafa7e8f1cff7d257199dca794ff358
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3988544c3ee41b8414b0fc096ba08404682e49b57b802fc127aa6b4598e265a
|
|
| MD5 |
15d53d2a4070d3458a2f9dcb42371c66
|
|
| BLAKE2b-256 |
ab0e989849ff945937fe788c1fef288e6e52ab448123fddde079bec572fa95a9
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp310-cp310-win32.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp310-cp310-win32.whl
- Upload date:
- Size: 5.4 MB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91dcb11370e0542aecbba1a8a1d02f27db2e44fccf62c74c8fd0ba279c6f031b
|
|
| MD5 |
ad6b6a9739592b40d9f2558a9b76f5dd
|
|
| BLAKE2b-256 |
b830fca52d9f94735345966de055be519e5b384fcc81c386db90532c3125faf9
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbd5b0609478594f7753074142bcae193f135a00570847cc2c96140234827c07
|
|
| MD5 |
4a57a7d89ed4dbc031a7ce5fc55a5967
|
|
| BLAKE2b-256 |
2dfab27eee66200356c6efcbc5d00cd74bbece3ea3da4560a748907f855d9469
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp39-cp39-win32.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp39-cp39-win32.whl
- Upload date:
- Size: 5.4 MB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5a0f157a87267047e459a5961e1ad1712c7b94f2358ac7aebaf0fb50cdc00ac
|
|
| MD5 |
6fa03431060c593253c48e9d570f74b3
|
|
| BLAKE2b-256 |
6de3a5e6e2607f44c80dc6914285e6ced99da9899373ef6445bb2eb53b9fd9f9
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
697f98c4831b9fd923a5bbec26108e8077608492b60baff4d1b68f17b1793735
|
|
| MD5 |
ea1234cf41492c122bdd0d45d5e2c5b4
|
|
| BLAKE2b-256 |
8184cea1bc8bd72379361f94cb71e5e6d59ae923e2304e2c402d44c9379e8191
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp38-cp38-win32.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp38-cp38-win32.whl
- Upload date:
- Size: 5.4 MB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05ecf4a5e44e19568dc149531d877ed4cc51310fe78e2fcee1009314588c3a42
|
|
| MD5 |
e5e6b86ca9763cf6e0fa86b131513d1d
|
|
| BLAKE2b-256 |
80a87cb586b132cba24645883909f3c91b64b8a7fc5a203000063b29f38bcb1c
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f50c66adfa26710d206e75bfb3d42aab99b8c7fb59051224b69631c58a29c7a9
|
|
| MD5 |
c2c464d582659d4c92541683fd8962c8
|
|
| BLAKE2b-256 |
bcfb3e3a1822eb154126359467d0c644e77cfcb4ec74f6744936757b28d584de
|
File details
Details for the file devart_bigquery_connector-1.3.0-cp37-cp37m-win32.whl.
File metadata
- Download URL: devart_bigquery_connector-1.3.0-cp37-cp37m-win32.whl
- Upload date:
- Size: 5.4 MB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6954635ad870e448df2e41de3dde6293145d88d257e9883af3aaccadde612a2
|
|
| MD5 |
567c4e1975c763ef377bb3cde06e3595
|
|
| BLAKE2b-256 |
2118dfcb468cca28c0898d276a721d18495914b192de4e1c2da5bb11b08f6e51
|