Skip to main content

llm-tools-sqlite

PyPI Changelog Tests License

LLM tools for running queries against SQLite

Installation

Install this plugin in the same environment as LLM.

llm install llm-tools-sqlite

Usage

To use this with the LLM command-line tool:

llm -T 'SQLite("content.db")' \
  "Count rows in the most interesting looking table" --td

Or use llm chat to chat with your database over multiple rounds:

llm chat -T 'SQLite("content.db")' 

This tool currently only supports read-only queries. Attempts to write to the database will fail with an error.

With the LLM Python API:

import llm
from llm_tools_sqlite import SQLite

model = llm.get_model("gpt-4.1-mini")

result = model.chain(
    "Show me the three most interesting looking tables",
    tools=[SQLite("content.db")]
)
for s in result:
    print(s, end="", flush=True)

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-tools-sqlite
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

python -m pytest

Release files for llm-tools-sqlite 0.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 llm-tools-sqlite 0.1
File Size Uploaded
llm_tools_sqlite-0.1.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-tools-sqlite 0.1
File Interpreter ABI Platform
llm_tools_sqlite-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / llm_tools_sqlite-0.1.tar.gz

Download URL llm_tools_sqlite-0.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b7e23f8bda244af93fc52f336297a4a65dae49438d853fe32529daceaa3b24a5
BLAKE2b-256 checksum
How to use checksums
ad9773c7ebc83335cd2d27345efa88194a9af56279816541626e4b969e9904ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2025.

Transparency log

Release files / llm_tools_sqlite-0.1-py3-none-any.whl

Download URL llm_tools_sqlite-0.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d46dfa368ea80ae2f21a0df63400e39adaa17a23770f75b1cd245b0a698048dc
BLAKE2b-256 checksum
How to use checksums
f8d678da51dcc803b28802fbaafd562afa0c1942d370796e3a2523fd38de4820
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

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