Skip to main content

Ask questions of your data with LLM assistance

Project description

sqlite-utils-ask

PyPI Changelog Tests License

Ask questions of your data with LLM assistance

Installation

Install this plugin in the same environment as sqlite-utils.

sqlite-utils install sqlite-utils-ask

Usage

Ask questions of your database like this:

sqlite-utils ask content.db 'How many repos?'

The tool will use an LLM (gpt-4o-mini by default) to generate the appropriate SQL query by passing through your question and the database schema, and will then execute the query and return the result.

Development

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

cd sqlite-utils-ask
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

python -m 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

sqlite_utils_ask-0.1a0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

sqlite_utils_ask-0.1a0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlite_utils_ask-0.1a0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for sqlite_utils_ask-0.1a0.tar.gz
Algorithm Hash digest
SHA256 2ad85cea573f246b43846723e1cc29036b6ca56dce7780e79c7daadac5ff009e
MD5 fb4ad72a5b5261762fa65148a936ab09
BLAKE2b-256 946ad238161aacdf26fdc6ecfdd926f3ce1575b5284aed2400ec4fbccd7101a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sqlite_utils_ask-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 229f01ad7e84f185f9989b9deda02925bb9100f57246187bd23e9aa81f9afee7
MD5 093a9609c5fb4c13caffabcd3cc8933f
BLAKE2b-256 2eea090eec3b6c89162abed6da55e4d0c61c9cde662fb5c21153c1f1c57d5c62

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