$npx skillfedfor your agent

shillelagh

Making it easy to query APIs via SQL

Worth itPyPI DatabaseReleased Jul 20261.1M downloads / momitPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — shillelagh-1.4.5-py2.py3-none-any.whl
v1.4.5 · released 2026-07-30 · Python >=3.9 · 9 runtime deps: importlib-metadata, apsw, python_dateutil, requests, requests-cache, sqlalchemy, greenlet, typing_extensions

Yes. Shillelagh is actively maintained, has no known vulnerabilities, installs with low friction, and solves a genuine problem: querying diverse data sources with SQL without building custom adapters. It's production-stable (Development Status 5), supports modern Python versions (3.9–3.13), and has a permissive MIT license. Install it if you need SQL access to APIs, spreadsheets, or files; skip it if you're working exclusively with traditional SQL databases.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later; APSW (included as a runtime dependency) may require a C compiler on some platforms.
  • Low friction: pure Python wheel with 9 runtime dependencies including SQLAlchemy, requests, and APSW.
  • Active maintenance with a release 15 days ago and 460 GitHub stars.

License · maintenance · safety

mit (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2026-07-30 (15 days) · last repo commit 2026-07-30 · 460 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,054,421 downloads/mo, #4,436 on PyPI

Verify before relying

pip install shillelagh

from shillelagh.backends.apsw.db import connect

connection = connect(":memory:")
cursor = connection.cursor()
for row in cursor.execute("SELECT * FROM a_table"):
    print(row)
  • Performance characteristics when querying large remote datasets or joining across multiple adapters.
  • Whether all listed adapters (CSV, Datasette, GSheets, S3, etc.) are included in the base install or require extras.
  • Stability and maturity of the experimental Postgres and sqlglot backends mentioned in the description.
Same gist for agents: .md · .json

What it is and what it does

Shillelagh is a Python library and CLI that bridges SQL and non-SQL data sources by implementing the Python DB API 2.0 on top of SQLite (via APSW). It lets you write SQL queries against APIs, files, spreadsheets, and in-memory objects as if they were database tables, with support for SELECT, INSERT, UPDATE, and DELETE operations. The library includes adapters for Google Sheets, CSV files, JSON and XML APIs, GitHub, S3, Pandas DataFrames, and several other sources, and you can write custom adapters to add support for new data sources.

You can use Shillelagh three ways: as a Python library with the APSW backend, as a SQLAlchemy dialect for integration with ORMs and query builders, or via a command-line REPL. Queries can combine data from multiple adapters in a single statement—for example, reading timestamps from a Google Sheet and using them to filter weather API results, then writing the output to a CSV file. The library is designed to be both user-friendly for simple queries and extensible for developers adding new adapters.

Use it for

  • Query a Google Sheet directly with SQL without exporting to a database or writing custom parsing code.
  • Combine data from multiple APIs and files in a single SQL query without writing ETL glue code.
  • Use SQL to filter and aggregate data from REST APIs that don't natively support SQL.
  • Prototype data analysis workflows using SQL before migrating to a full database.
  • Build a CLI tool that lets non-technical users query APIs and files using familiar SQL syntax.
  • Insert or update data in remote spreadsheets and files using SQL INSERT/UPDATE/DELETE statements.

Worth the install?

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

Worth it

Yes.

Shillelagh is actively maintained, has no known vulnerabilities, installs with low friction, and solves a genuine problem: querying diverse data sources with SQL without building custom adapters. It's production-stable (Development Status 5), supports modern Python versions (3.9–3.13), and has a permissive MIT license. Install it if you need SQL access to APIs, spreadsheets, or files; skip it if you're working exclusively with traditional SQL databases.

Install

shillelagh on PyPI

Before you install

Low friction: pure Python wheel with 9 runtime dependencies including SQLAlchemy, requests, and APSW. Active maintenance with a release 15 days ago and 460 GitHub stars.

Requires Python 3.9 or later; APSW (included as a runtime dependency) may require a C compiler on some platforms.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install shillelagh

from shillelagh.backends.apsw.db import connect

connection = connect(":memory:")
cursor = connection.cursor()
for row in cursor.execute("SELECT * FROM a_table"):
    print(row)

Verify before relying

  • Performance characteristics when querying large remote datasets or joining across multiple adapters.
  • Whether all listed adapters (CSV, Datasette, GSheets, S3, etc.) are included in the base install or require extras.
  • Stability and maturity of the experimental Postgres and sqlglot backends mentioned in the description.

Package facts

Licensemit permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
9 packages
importlib-metadataapswpython_dateutilrequestsrequests-cachesqlalchemygreenlettyping_extensionspackaging
MaintenanceActively maintained 15 days since the last release
Last repo commit
First released
Downloads1,054,421 / month, #4,436 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 :: Science/ResearchLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: SQL

Evidence: shillelagh-1.4.5-py2.py3-none-any.whl

Tags

Capabilities
query APIs with SQLSQL interface for REST APIsspreadsheet SQL queriesmulti-source SQL adapterAPI data as SQL tablesquery Google Sheets with SQLCSV and JSON SQL queries
Topics
sql-adaptermulti-source-queryapi-querying

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 › “query APIs with SQL”

  • shillelaghShillelagh lets you query APIs, files, spreadsheets, and in-memory…
  • django-sql-explorerA Django-based SQL query editor and business intelligence tool that…
  • elasticsearch-dbapiProvides DBAPI (PEP-249) and SQLAlchemy dialect access to…

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

More Database packages

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
redis Worth it
PyPI · Database · released Jul 2026

Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.

Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.

Install it if you need to connect Python applications to YDB databases.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.

Install it if you need to manipulate, format, or analyze SQL text programmatically.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also queries · gsheets · datasette · aiosql · elasticsearch-dbapi · kylinpy · clickhouse-connect · sqlalchemy-solr · sgqlc · sqlite-utils