skillfed

pybigquery

OBSOLETE SQLAlchemy dialect for BigQuery

pybigquery v0.10.2 199.2K downloads/30d#9,712 on PyPI490
Permissive license Abandoned released

What it is and what it does

pybigquery is a SQLAlchemy dialect that bridges SQLAlchemy to Google BigQuery, allowing you to write SQL queries and ORM code against BigQuery datasets as if they were local databases. It wraps the google-cloud-bigquery client and integrates with SQLAlchemy's engine and connection abstractions, supporting table reflection, parameterized queries, and BigQuery-specific options like dataset location, batch size, and query job configuration.

The package is now obsolete and abandoned. Its documentation explicitly directs users to sqlalchemy-bigquery instead, and the repository has been archived with no commits since 2021. While it carries no known vulnerabilities and remains installable, it will not receive bug fixes, security patches, or compatibility updates for newer Python or BigQuery API versions.

Use it for:

  • Migrating legacy SQLAlchemy applications that previously used pybigquery to sqlalchemy-bigquery for continued support
  • Querying BigQuery tables through SQLAlchemy ORM in applications locked to older codebases that cannot migrate
  • Prototyping BigQuery integration in environments where only historical package versions are available
  • Dry-running BigQuery queries via the ApiClient to estimate query cost before execution

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

SQLAlchemy dialect for BigQuery that enables SQL queries against BigQuery datasets using SQLAlchemy's ORM and expression language.

No. The package is explicitly marked obsolete and abandoned; its own documentation directs users to sqlalchemy-bigquery instead. Do not install for new projects. For existing codebases using pybigquery, plan a migration to sqlalchemy-bigquery to ensure ongoing compatibility and security support.

Install

pybigquery on PyPI

pip

pip install pybigquery

uv

uv add pybigquery

poetry

poetry add pybigquery

Installing pybigquery

Before you install

Low install friction with standard dependencies, but the package is abandoned as of 2021-08-19 and explicitly marked obsolete in its own documentation. The repository is archived; no maintenance or security updates are forthcoming.

License in practice

Licensed under MIT (permissive), which imposes no restrictions on use or redistribution.

Quickstart

pip install pybigquery

from sqlalchemy import create_engine, Table, MetaData, select, func
engine = create_engine('bigquery://project')
table = Table('dataset.table', MetaData(bind=engine), autoload=True)
print(select([func.count('*')], from_obj=table).scalar())

Requires Python >= 3.6, < 3.10; Google Cloud authentication credentials must be configured (service account JSON or environment-based); BigQuery Storage API must be enabled in the GCP project.

Verify before relying

  • Whether sqlalchemy-bigquery (the recommended replacement) is a drop-in substitute or requires code changes
  • Current compatibility with modern BigQuery API versions and recent SQLAlchemy releases
  • Whether the package still works with Python versions beyond 3.9 despite the <3.10 constraint

Package facts

License not declared (permissive)
Python support capped below the current Python release (>=3.6, <3.10)
Install friction low — pure-Python wheel
Runtime dependencies 5 — google-cloud-bigquery, google-api-core, google-auth, sqlalchemy, future
Maintenance abandoned — 1,821 days since the last release
Last repo commit (repository archived)
First released
Downloads 199,235/month — #9,712 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pybigquery-0.10.2-py2.py3-none-any.whl

Keywords: bigquery, sqlalchemy

Development Status :: 7 - InactiveIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Database :: Front-Ends

Tags

sqlalchemy bigquery dialectbigquery sql ormsqlalchemy bigquery connectorbigquery database adaptersqlalchemy bigquery integration
abandonedbigquerysqlalchemy-dialect

More Front-Ends packages

SQLAlchemy

SQLAlchemy is a Python SQL toolkit and Object…

permissive · top 100 on PyPI

psycopg2-binary

psycopg2-binary is a PostgreSQL database…

copyleft · top 1,000 on PyPI

alembic

Alembic generates and manages database schema…

permissive · top 1,000 on PyPI

weaviate-client

A Python client library for connecting to and…

permissive · top 1,000 on PyPI

databricks-sql-connector

A Python client library that connects to…

permissive · top 1,000 on PyPI

psycopg

Psycopg 3 is a PostgreSQL database adapter for…

copyleft · top 1,000 on PyPI

db-dtypes

Provides pandas extension data types for SQL…

permissive · top 1,000 on PyPI

sqlalchemy-bigquery

SQLAlchemy dialect that enables you to use…

permissive · top 1,000 on PyPI

sqlalchemy-solr

Provides a SQLAlchemy dialect that allows you…

permissive · top 15,000 on PyPI

sqlalchemy-trino

Provides a SQLAlchemy dialect for connecting to…

permissive · top 15,000 on PyPI

bigquery-magics

Provides IPython magic commands to query Google…

permissive · top 15,000 on PyPI

sqlalchemy-hana

Provides a SQLAlchemy dialect that enables you…

permissive · top 15,000 on PyPI

sqlalchemy-databricks

Provides a SQLAlchemy dialect that connects to…

permissive · top 15,000 on PyPI

databricks-sqlalchemy

Provides a SQLAlchemy 2.0 dialect that bridges…

permissive · top 1,000 on PyPI

sqlalchemy-pgspider

Provides a SQLAlchemy dialect that enables…

permissive · top 15,000 on PyPI

ibm-db-sa

SQLAlchemy dialect adapter that enables Python…

permissive · top 15,000 on PyPI