agate-sql
agate-sql adds SQL read/write support to agate.
What it is and what it does
agate-sql is a plugin for the agate data analysis library that adds SQL database connectivity. It allows you to load data directly from SQL queries into agate's in-memory table format and write agate tables back to database tables, using sqlalchemy as the underlying database abstraction layer. The package is designed for developers and researchers who work with tabular data and need to move data between SQL databases and agate's analytical environment.
The package has been in development since 2015 and is classified as Beta. It supports Python 3.10, 3.11, 3.12, 3.13, and 3.14 on both CPython and PyPy. With low installation friction and no known security vulnerabilities, it integrates cleanly into existing agate workflows, though its aging maintenance status means you should verify compatibility with your specific agate and sqlalchemy versions before relying on it for production use.
Use it for:
- Load query results from a SQL database into an agate table for statistical analysis or data cleaning.
- Export cleaned or transformed agate tables back to a SQL database for persistence or downstream processing.
- Bridge between SQL-based data pipelines and agate's analytical and reporting capabilities.
- Prototype data workflows that move between relational databases and in-memory tabular analysis.
- Integrate agate into existing applications that already use sqlalchemy for database access.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
agate-sql extends the agate data analysis library with the ability to read from and write to SQL databases, bridging in-memory tabular data with relational database backends.
Yes, if you are already using agate and need SQL database connectivity. The package has low installation friction, permissive licensing, and no known vulnerabilities. However, maintenance is aging (last release 242 days ago), so verify compatibility with your versions of agate and sqlalchemy before deploying to production.
Install
agate-sql on PyPI
pip
pip install agate-sqluv
uv add agate-sqlpoetry
poetry add agate-sqlInstalling agate-sql
Before you install
Installation is straightforward with low friction; the package has two runtime dependencies and a pure-Python wheel. However, maintenance status is aging—the last release was 242 days ago—so expect slower response to issues or compatibility updates.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions; you may use, modify, and distribute agate-sql freely as long as you include the license notice.
Quickstart
pip install agate-sql
import agate
import agate_sql
table = agate.Table.from_sql('SELECT * FROM my_table', connection_string)
Verify before relying
- Whether the package remains compatible with the latest versions of agate and sqlalchemy given the aging maintenance status.
- Specific SQL database engines or versions that are actively tested or supported.
- Whether agate itself remains actively maintained for your use case.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — agate, sqlalchemy |
| Maintenance | aging — 242 days since the last release |
| First released | |
| Downloads | 357,325/month — #7,270 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: agate_sql-0.7.3-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
agateagate is a Python data analysis library…
permissive · top 1,000 on PyPI
agate-dbfAdds read support for DBF (dBASE) files to the…
permissive · top 15,000 on PyPI
agate-excelAdds Excel file (xls and xlsx) read support to…
permissive · top 15,000 on PyPI
recordsRecords provides a lightweight SQL query…
permissive · top 15,000 on PyPI
SQLAlchemySQLAlchemy is a Python SQL toolkit and Object…
permissive · top 100 on PyPI
snowflake-sqlalchemySnowflake SQLAlchemy is a SQLAlchemy dialect…
permissive · top 1,000 on PyPI
databricks-sql-connectorA Python client library that connects to…
permissive · top 1,000 on PyPI
datasetdataset simplifies reading and writing data to…
permissive · top 5,000 on PyPI
osqueryPython bindings for creating osquery extensions…
permissive · top 15,000 on PyPI
beam-nuggetsProvides Apache Beam transforms for reading and…
permissive · top 15,000 on PyPI