Skip to main content

Ibis BigQuery backend

This package provides a BigQuery backend for Ibis.

Installation

Supported Python Versions

Python >= 3.7, < 3.11

Unsupported Python Versions

Python < 3.7

Install with conda:

conda install -c conda-forge ibis-bigquery

Install with pip:

pip install ibis-bigquery

Usage

Connecting to BigQuery

Recommended usage (Ibis 2.x, only):

import ibis

conn = ibis.bigquery.connect(
    project_id=YOUR_PROJECT_ID,
    dataset_id='bigquery-public-data.stackoverflow'
)

Using this library directly:

import ibis
import ibis_bigquery

conn = ibis_bigquery.connect(
    project_id=YOUR_PROJECT_ID,
    dataset_id='bigquery-public-data.stackoverflow'
)

Running a query

edu_table = conn.table(
    'international_education',
    database='bigquery-public-data.world_bank_intl_education')
edu_table = edu_table['value', 'year', 'country_code', 'indicator_code']

country_table = conn.table(
    'country_code_iso',
    database='bigquery-public-data.utility_us')
country_table = country_table['country_name', 'alpha_3_code']

expression = edu_table.join(
    country_table,
    [edu_table.country_code == country_table.alpha_3_code])

print(conn.execute(
    expression[edu_table.year == 2016]
        # Adult literacy rate.
        [edu_table.indicator_code == 'SE.ADT.LITR.ZS']
        .sort_by([ibis.desc(edu_table.value)])
        .limit(20)
))

Metadata

Release files for ibis-bigquery 2.2.1

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

Source distribution (sdist)

Source distribution for ibis-bigquery 2.2.1
File Size Uploaded Provenance Actions
ibis-bigquery-2.2.1.tar.gz 49.9 kB Without provenance Details for ibis-bigquery-2.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ibis-bigquery 2.2.1
File Interpreter ABI Platform Actions
ibis_bigquery-2.2.1-py3-none-any.whl Python 3 none any Details for ibis_bigquery-2.2.1-py3-none-any.whl

Total release size: 84.3 kB

Release files / ibis-bigquery-2.2.1.tar.gz

Download URL ibis-bigquery-2.2.1.tar.gz
Size 49.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1d94c64b8803b07f7dce41027238c727e9f38ccbcc951496f62aeb0898e2a3e4
BLAKE2b-256 checksum
How to use checksums
20b677f34c2954c6b7207abea51ff16c1f3b72311f50002f9ab68e80ef8ecfe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.5

Release files / ibis_bigquery-2.2.1-py3-none-any.whl

Download URL ibis_bigquery-2.2.1-py3-none-any.whl
Size 34.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1718c11d57cfc084967bf76ccdf08cc7e2d9fbc6b1bfe14e9eb373cbbe4c23ab
BLAKE2b-256 checksum
How to use checksums
95b450657f9a0c067c3834c867b6569eaa4f238ae43d0042eefe09920444e043
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.5

Security for ibis-bigquery 2.2.1

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.

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