datasette-chatgpt-plugin
A Datasette plugin that turns a Datasette instance into a ChatGPT plugin - so you can use ChatGPT to ask questions of your data.
For more on this project, see Building a ChatGPT plugin to ask questions of data hosted in Datasette.
Installation
Install this plugin in the same environment as Datasette, on a deployed instance.
datasette install datasette-chatgpt-plugin
Or if you are using datasette publish to deploy Datasette:
datasette publish cloudrun/vercel/fly/heroku data.db \
--install datasette-chatgpt-plugin
Usage
Once installed, your Datasette instance will work with the new ChatGPT plugins system - provided you have access to that preview.
Click Plugins -> Plugin store -> Install an unverified plugin and enter the URL of your Datasette instance.
ChatGPT will discover the plugin by hitting the /.well-known/ai-plugin.json endpoint.
You can then ask it questions! Some starting examples:
- Show a list of tables (this is always good to start with as it ensures ChatGPT knows which tables are available)
- Show the first 10 rows of the
mytabletable
This plugin currently exposes a single database - the first database attached to your instance.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-chatgpt-plugin
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for datasette-chatgpt-plugin 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 | Provenance | Actions |
|---|---|---|---|---|
| datasette-chatgpt-plugin-0.1.tar.gz | 8.3 kB | Without provenance | Details for datasette-chatgpt-plugin-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datasette_chatgpt_plugin-0.1-py3-none-any.whl | Python 3 | none | any | Details for datasette_chatgpt_plugin-0.1-py3-none-any.whl |
Total release size: 16.6 kB
Release files / datasette-chatgpt-plugin-0.1.tar.gz
| Download URL | datasette-chatgpt-plugin-0.1.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a657c17b85b1339dd1856f53a5fdde62680b7368633580c34050ce42bb61343
|
|
BLAKE2b-256 checksum How to use checksums |
fdad6a723dfb9ca96665c10a36005e4e6414d3e69defa1e3d0f0721a56398e08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / datasette_chatgpt_plugin-0.1-py3-none-any.whl
| Download URL | datasette_chatgpt_plugin-0.1-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
062c4bde96e881c654a3472877f98f3daddff2ed93562e8ab1657804913405df
|
|
BLAKE2b-256 checksum How to use checksums |
2f1f841a2961da1306f1a661961e8e87c8ddb011959522bb53ef58ce36ba4335
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for datasette-chatgpt-plugin 0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.