$npx skillfedfor your agent

db-dtypes

Pandas Data Types for SQL systems (BigQuery, Spanner)

Worth itPyPI Front-EndsReleased Jul 202647.0M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — db_dtypes-1.7.1-py3-none-any.whl
v1.7.1 · released 2026-07-08 · Python >=3.10 · 4 runtime deps: numpy, packaging, pandas, pyarrow

Yes. db-dtypes is actively maintained, production-stable, has no security vulnerabilities, and solves a real problem for anyone moving data between pandas and SQL systems like BigQuery or Spanner. Low install friction and permissive licensing make it a straightforward addition to data pipelines. Install it if you regularly work with SQL data in pandas and need type fidelity.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >= 3.10; Python 3.9 and earlier are not supported.
  • Low install friction with a pure-wheel distribution.
  • Actively maintained as of 2026-08-14 with recent releases; requires Python >= 3.10.

License · maintenance · safety

permissive license (permissive) — Licensed under Apache Software License (permissive), allowing commercial and private use with minimal restrictions.

last release 2026-07-08 (37 days) · last repo commit 2026-08-14 · 5,371 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 47,028,806 downloads/mo, #605 on PyPI

Verify before relying

pip install db-dtypes

import db_dtypes
import pandas as pd

# Use db-dtypes extension types in pandas DataFrames
df = pd.DataFrame({'col': pd.array([], dtype=db_dtypes.DateType())})
  • Whether db-dtypes covers all BigQuery and Spanner data types or a subset
  • Performance characteristics when working with large datasets from SQL systems
  • Compatibility with specific versions of BigQuery or Spanner client libraries
Same gist for agents: .md · .json

What it is and what it does

db-dtypes extends pandas with custom data types designed to represent types from SQL databases like BigQuery and Spanner. It implements pandas extension data types, allowing you to work with database-native types directly in pandas DataFrames without lossy conversion to standard Python/NumPy types. This is particularly useful when round-tripping data between pandas and SQL systems, as it preserves type semantics and avoids unnecessary casting.

The package depends on numpy, pandas, pyarrow, and packaging, integrating seamlessly into the pandas ecosystem. It is actively maintained, classified as Production/Stable, and has no known security vulnerabilities. Installation is straightforward via pip, with low friction due to its pure-Python wheel distribution.

Use it for

  • Load BigQuery query results into pandas while preserving SQL type information for accurate downstream analysis.
  • Convert pandas DataFrames back to BigQuery with correct type mapping, avoiding schema inference errors.
  • Work with Spanner data in pandas while maintaining database-native type semantics.
  • Build ETL pipelines that move data between SQL systems and pandas without type degradation.
  • Develop data science workflows that require precise type handling for SQL-sourced datasets.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

db-dtypes is actively maintained, production-stable, has no security vulnerabilities, and solves a real problem for anyone moving data between pandas and SQL systems like BigQuery or Spanner. Low install friction and permissive licensing make it a straightforward addition to data pipelines. Install it if you regularly work with SQL data in pandas and need type fidelity.

Install

db-dtypes on PyPI

Before you install

Low install friction with a pure-wheel distribution. Actively maintained as of 2026-08-14 with recent releases; requires Python >= 3.10.

Requires Python >= 3.10; Python 3.9 and earlier are not supported.

License in practice

Licensed under Apache Software License (permissive), allowing commercial and private use with minimal restrictions.

Quickstart

pip install db-dtypes

import db_dtypes
import pandas as pd

# Use db-dtypes extension types in pandas DataFrames
df = pd.DataFrame({'col': pd.array([], dtype=db_dtypes.DateType())})

Verify before relying

  • Whether db-dtypes covers all BigQuery and Spanner data types or a subset
  • Performance characteristics when working with large datasets from SQL systems
  • Compatibility with specific versions of BigQuery or Spanner client libraries

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
numpypackagingpandaspyarrow
MaintenanceActively maintained 37 days since the last release
Last repo commit
First released
Downloads47,028,806 / month, #605 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Database :: Front-Ends

Evidence: db_dtypes-1.7.1-py3-none-any.whl

Tags

Capabilities
pandas extension types sqlbigquery pandas dtypesspanner pandas integrationsql data types pandasdatabase dtypes pandas
Topics
sql-integrationtype-preservationbigquery
PyPI keywords
sqlpandas

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pandas extension types sql”

  • db-dtypesProvides pandas extension data types for SQL systems like BigQuery…
  • singlestoredbProvides a DB-API 2.0 compatible Python interface to SingleStore, a…
  • pangresUpserts pandas DataFrames into PostgreSQL, MySQL, and SQLite…

Give your agent the search over MCP, or paste the wish link into any chat.

More Front-Ends packages

SQLAlchemy Worth it
PyPI · Front-Ends · released Aug 2026

SQLAlchemy is a Python SQL toolkit and Object Relational Mapper (ORM) that provides both a high-level ORM layer for declarative object persistence and a Core SQL construction system for direct database abstraction and query building.

permissive licensepure Python · 3.7+
422.7Mdownloads / mo
psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
alembic Worth it
PyPI · Front-Ends · released Aug 2026

Alembic generates and manages database schema migrations for SQLAlchemy applications, handling version control of database structure changes with support for upgrades, downgrades, and auto-generation from model changes.

Install it if you use SQLAlchemy and need to version-control schema changes; skip it only if you manage migrations manually or use a different ORM entirely.

MITpure Python · 3.10+
215.2Mdownloads / mo
weaviate-client Worth it
PyPI · Front-Ends · released Aug 2026

A Python client library for connecting to and querying Weaviate, a vector database that enables semantic search and AI-powered data retrieval.

permissive licensepure Python · 3.10+
213.2Mdownloads / mo
databricks-sql-connector Worth it
PyPI · Front-Ends · released Jul 2026

A Python client library that connects to Databricks clusters and SQL warehouses using a Thrift-based protocol, conforming to the Python DB API 2.0 specification and supporting Arrow-based data exchange.

Install it if you need to query Databricks clusters or SQL warehouses from Python.

Apache-2.0pure Python
119.5Mdownloads / mo
psycopg Worth it
PyPI · Software Development · released May 2026

Psycopg 3 is a PostgreSQL database adapter for Python that enables applications to connect to, query, and manage PostgreSQL databases using Python code.

Install it if you need to connect Python to PostgreSQL.

LGPL-3.0-onlypure Python · 3.10+
117.0Mdownloads / mo

See also pybigquery · pandas-gbq · sqlalchemy-spanner · bigframes · bcpandas · sqlalchemy-bigquery · pangres · qpd · presto-types-parser · pytd