Skip to main content

IPython Magics for BigQuery

GA pypi versions

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:

  1. Select or create a Cloud Platform project.

  2. Enable billing for your project.

  3. Enable the Google Cloud BigQuery API.

  4. Setup Authentication.

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.10

Unsupported Python Versions

Python <= 3.9.

Mac/Linux

pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install bigquery-magics

Windows

pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install bigquery-magics

Example Usage

To use these magics, you must first register them. Run the %load_ext bigquery_magics in a Jupyter notebook cell.

%load_ext bigquery_magics

Perform a query

%%bigquery
SELECT name, SUM(number) as count
FROM 'bigquery-public-data.usa_names.usa_1910_current'
GROUP BY name
ORDER BY count DESC
LIMIT 3

Metadata

Release files for bigquery-magics 0.15.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bigquery-magics 0.15.2
File Size Uploaded Provenance Actions
bigquery_magics-0.15.2.tar.gz 60.7 kB With provenance Details for bigquery_magics-0.15.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bigquery-magics 0.15.2
File Interpreter ABI Platform Actions
bigquery_magics-0.15.2-py3-none-any.whl Python 3 none any Details for bigquery_magics-0.15.2-py3-none-any.whl

Total release size: 102.1 kB

Release files / bigquery_magics-0.15.2.tar.gz

Download URL bigquery_magics-0.15.2.tar.gz
Size 60.7 kB
Tags Source
SHA-256 checksum
How to use checksums
86769b2d8b304d8d20bd1927e728660a7594160baee681dc639cecad9f7481e1
BLAKE2b-256 checksum
How to use checksums
877bb8ba1b516fc7a00c384a5c49492b1776ceb2c160b1ec7b4c108c7f35ab1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.11.2

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by Google Cloud, verified by PyPI on Oct 23, 2026.

Transparency log

Release files / bigquery_magics-0.15.2-py3-none-any.whl

Download URL bigquery_magics-0.15.2-py3-none-any.whl
Size 41.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73c5c550bc9a950ac8220c43addc9744553de07548aa69065bb37f77bff6e46f
BLAKE2b-256 checksum
How to use checksums
7caae217c39a8c6e632665a122787f93b01c3cbbff10b1466197111ba4444a8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.11.2

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by Google Cloud, verified by PyPI on Oct 23, 2026.

Transparency log

Security for bigquery-magics 0.15.2

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bigquery_magics-0.15.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by Google Cloud, verified by PyPI on Oct 23, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page