Skip to main content

llm-tools-datasette

PyPI Changelog Tests License

Expose Datasette instances to LLM as a tool

Installation

Install this plugin in the same environment as LLM. You'll need at least the 0.26a1 alpha.

llm install llm-tools-datasette

Usage

First find the URL to a database within your Datasette instance. For example, https://datasette.io/content.

To use this with the LLM command-line tool:

llm --tool 'Datasette("https://datasette.io/content")' "Show tables" --td

This plugin works well with llm chat:

llm chat --tool 'Datasette("https://datasette.io/content")' --td

(Omit the --td option if you don't want to see debugging details.)

With the LLM Python API:

import llm
from llm_tools_datasette import Datasette

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

result = model.chain(
    "Show most interesting tables",
    tools=[Datasette("https://datasette.io/content")],
).text()

Development

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

cd llm-tools-datasette
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

Metadata

Release files for llm-tools-datasette 0.1.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-datasette 0.1.1
File Size Uploaded
llm_tools_datasette-0.1.1.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-tools-datasette 0.1.1
File Interpreter ABI Platform
llm_tools_datasette-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.5 kB

Release files / llm_tools_datasette-0.1.1.tar.gz

Download URL llm_tools_datasette-0.1.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b8ae0ab1abcffbca62582a8fe2252d3fb1007cd0c6999b2e090e14d9b29820ff
BLAKE2b-256 checksum
How to use checksums
005080207a0adf8dd03ac37c05dc68cd193066f9ea54c37a6eef5987576c84e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 18, 2026.

Transparency log

Release files / llm_tools_datasette-0.1.1-py3-none-any.whl

Download URL llm_tools_datasette-0.1.1-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30fef9cf58f1b4b437f75f89794583c859215845927fca2dad33d49b124e6a9a
BLAKE2b-256 checksum
How to use checksums
fa4cc2bd8ff492603602936d47dbe3e01304f8ba81dfd8ca6f573cb8fc8caa97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 18, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

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