llm-tools-datasette
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
Release files for llm-tools-datasette 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llm_tools_datasette-0.1.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_tools_datasette-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / llm_tools_datasette-0.1.tar.gz
| Download URL | llm_tools_datasette-0.1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
154616de8f3c51d6495a084b7d91196ec2006a4fde0cfa471eea0652bc9b0e9e
|
|
BLAKE2b-256 checksum How to use checksums |
929aefd1c4190f014a2689185e6be0dfe1d9b2f9365c8b871c75d956616ae149
|
| 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 logRelease files / llm_tools_datasette-0.1-py3-none-any.whl
| Download URL | llm_tools_datasette-0.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
757df5afb45eb3dac6049ef37f8792ca7c3af7e5ca087fdb41e4a65baebb4f7f
|
|
BLAKE2b-256 checksum How to use checksums |
36fe8f171646d45766ffe2ff71a709d92fcc8c279d981171ff40b0b14a42ef38
|
| 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