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:
- Aggregate functions
- Array functions
- Datetime functions
- Navigation 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.4
- Added support for Python 3.15
- Added support for service account authentication using JSON
Metadata
Release files for devart-bigquery-connector 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 101.7 MB
Release files / devart_bigquery_connector-1.4.0-cp315-cp315-win_amd64.whl
| Download URL | devart_bigquery_connector-1.4.0-cp315-cp315-win_amd64.whl |
|---|---|
| Size | 8.6 MB |
| Tags | CPython 3.15 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3485020a3cbe94afd084f814b108855eec2f426824edf835040eed2fee454ab4
|
|
BLAKE2b-256 checksum How to use checksums |
b5d350e8fc1fa43f266d8cd6018d6d05c0abf97d6cea084682f6c94051051a5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_bigquery_connector-1.4.0-cp315-cp315-win32.whl
| Download URL | devart_bigquery_connector-1.4.0-cp315-cp315-win32.whl |
|---|---|
| Size | 8.4 MB |
| Tags | CPython 3.15 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
11359694c32abd5e9b1f195b3ac20a7b3c5d71dc710e7d62aa92c22eb40c3315
|
|
BLAKE2b-256 checksum How to use checksums |
13d00661989ad2e4899f4170733bd94639d0d244012e8e40fa25b6ed07643b95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_bigquery_connector-1.4.0-cp314-cp314-win_amd64.whl
| Download URL | devart_bigquery_connector-1.4.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 8.6 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c619e20897c0e9d81e08ae608272dd2be1748480ff2becec7400c1d453cba6cb
|
|
BLAKE2b-256 checksum How to use checksums |
a519dd0d2cebc8d916c9301795d5c06b91037c5cb7313b54127bab5d47dc919e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_bigquery_connector-1.4.0-cp314-cp314-win32.whl
| Download URL | devart_bigquery_connector-1.4.0-cp314-cp314-win32.whl |
|---|---|
| Size | 8.4 MB |
| Tags | CPython 3.14 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
f63e4a11ffb1efdee694117a08bf8f691aa2663a6549efd91f5ccfd0498f5fc9
|
|
BLAKE2b-256 checksum How to use checksums |
7ed531c0b65ebe54413aad6899701786977ccca363712952acaea911bcfb8e60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_bigquery_connector-1.4.0-cp313-cp313-win_amd64.whl
| Download URL | devart_bigquery_connector-1.4.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 8.6 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
61f55b7031104d4f86ba628ff4d5ec473d4e7dcdad36513c4a679f4a087ae9d4
|
|
BLAKE2b-256 checksum How to use checksums |
dcf8e1dd1f6d099c72191ede2553dabdbe065f81b49191ad0869118f91e23ee0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_bigquery_connector-1.4.0-cp313-cp313-win32.whl
| Download URL | devart_bigquery_connector-1.4.0-cp313-cp313-win32.whl |
|---|---|
| Size | 8.3 MB |
| Tags | CPython 3.13 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
b9f0091a1d989f30f45cb807039a3282c127372c35359594c22357f8b4849c0c
|
|
BLAKE2b-256 checksum How to use checksums |
78da889a12a32c1d54833bf58d8cc74cb72cc9afa57a9d97fa17edfd16ad95a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_bigquery_connector-1.4.0-cp312-cp312-win_amd64.whl
| Download URL | devart_bigquery_connector-1.4.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 8.6 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
db8ae3183e2c80673ce6da03c456fef2652d2e70e7b097aff4e2c27d7340d651
|
|
BLAKE2b-256 checksum How to use checksums |
361b6642f5ce7938dee3c75a79788ba8876a01bbcfc3ff7c648c36f8ccb715bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_bigquery_connector-1.4.0-cp312-cp312-win32.whl
| Download URL | devart_bigquery_connector-1.4.0-cp312-cp312-win32.whl |
|---|---|
| Size | 8.3 MB |
| Tags | CPython 3.12 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
454f0bb59ad39a6bec4cbe2d98983bc8e22aabf67e925c6a17880189c4f4aef0
|
|
BLAKE2b-256 checksum How to use checksums |
258ead0ea3d0a72586b5f89bf89811786513941d80401b63976c1f79e36235b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_bigquery_connector-1.4.0-cp311-cp311-win_amd64.whl
| Download URL | devart_bigquery_connector-1.4.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 8.6 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9d7cd7634658ebfb61c020fbbd91586efbac83d83a183e95e6467dcd83cdd6a3
|
|
BLAKE2b-256 checksum How to use checksums |
f684ef45893d4f924fba81aa776b27eb1d7ced37ebc54cea468ba583f26a2c68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_bigquery_connector-1.4.0-cp311-cp311-win32.whl
| Download URL | devart_bigquery_connector-1.4.0-cp311-cp311-win32.whl |
|---|---|
| Size | 8.3 MB |
| Tags | CPython 3.11 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
4a881087303c8978a3d73ace5b1e278817661f1875e7a07b3120e7b68706b904
|
|
BLAKE2b-256 checksum How to use checksums |
4dac24fdaa81a198761bb8ca1f3f1453fa052c3ebb027e9a841aeda7fe1a8ef7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_bigquery_connector-1.4.0-cp310-cp310-win_amd64.whl
| Download URL | devart_bigquery_connector-1.4.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 8.6 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
bbf2fd1fa99047768fb763b8fe156fb540ef29392a1610b7aac3459830bd2569
|
|
BLAKE2b-256 checksum How to use checksums |
67eb055823821f85ba619e0251a803c8ceee39646734b092bb807f4e7ac1e5b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_bigquery_connector-1.4.0-cp310-cp310-win32.whl
| Download URL | devart_bigquery_connector-1.4.0-cp310-cp310-win32.whl |
|---|---|
| Size | 8.3 MB |
| Tags | CPython 3.10 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
633e6040c0c858d3817b992101a6f8283ffe60bd64839e1de0f2e0a652d89dcb
|
|
BLAKE2b-256 checksum How to use checksums |
e6e40ec8665966a052ef28162f507dbe5ac3453482e00b0c3cac147216160ed9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Security for devart-bigquery-connector 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.