Skip to main content

Query databases and tables with AI assistance

Project description

datasette-query-assistant

PyPI Changelog Tests License

Query databases and tables with AI assistance

Early alpha.

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-query-assistant

Configuration

This plugin currently requires you to set the ANTHROPIC_API_KEY environment variable to a working Anthropic API key.

Usage

Users with execute-sql permission will gain a database action menu item for "Query this database with AI assistance" which will let them ask a question and be redirected to SQL that will hopefully answer it.

Development

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

cd datasette-query-assistant
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette_query_assistant-0.1a0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file datasette_query_assistant-0.1a0.tar.gz.

File metadata

File hashes

Hashes for datasette_query_assistant-0.1a0.tar.gz
Algorithm Hash digest
SHA256 90ee0b3a39aa4f02894815c5c29da6125efdb170f965b981c64e36fdaed22cea
MD5 befd54237b8b3e54b11a2a9f00e8bc79
BLAKE2b-256 3cb7e604e30bfc1f98246ff5f61f1aba4456f5eaffe743e7a07960fa40cc0a5e

See more details on using hashes here.

File details

Details for the file datasette_query_assistant-0.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_query_assistant-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c150e926513dbb667885f04ccef25594043db7446e9f781c557282ebd168c02
MD5 52a94e99d3185936c0e25bf65038577c
BLAKE2b-256 873e26f7be490b80159f4c11b55614b8e2dcbdde98baf7c8f7e55f010e69842a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page