Observable Plot charts for Datasette Agent
Project description
datasette-agent-charts
Observable Plot charts for Datasette agent.
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-agent-charts
Usage
This plugin adds a render_chart tool to Datasette Agent that can generate charts from SQL query results using Observable Plot.
Try prompts like this one, adapted to your available tables:
Draw a bar chart of downloads over time
Tool definition
The render_chart tool accepts the following parameters:
- database — the database to query
- sql — SQL query whose results become chart data
- chart_type — one of
barX,barY,line,dot,areaY,waffleY - x — column name for the x axis
- y — column name for the y axis
- color — (optional) column name for color encoding
- title — (optional) chart title
- x_label — (optional) x axis label
- y_label — (optional) y axis label
Development
To set up this plugin locally, first checkout the code. You can confirm it is available like this:
cd datasette-agent-charts
# Confirm the plugin is visible
uv run datasette plugins
To run the tests:
uv run pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datasette_agent_charts-0.1a2.tar.gz.
File metadata
- Download URL: datasette_agent_charts-0.1a2.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed130eafddab2d6ff54cbfa20e2088e44b4ce4c77c7562b30d99980dff63065a
|
|
| MD5 |
5cca8b3fa0faad74d4b88cebe9af6431
|
|
| BLAKE2b-256 |
cd6835aaf4bf570e57569b712e6bc2e7370c3f4e54a773c46fa767982c59d68b
|
Provenance
The following attestation bundles were made for datasette_agent_charts-0.1a2.tar.gz:
Publisher:
publish.yml on datasette/datasette-agent-charts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_agent_charts-0.1a2.tar.gz -
Subject digest:
ed130eafddab2d6ff54cbfa20e2088e44b4ce4c77c7562b30d99980dff63065a - Sigstore transparency entry: 1592265778
- Sigstore integration time:
-
Permalink:
datasette/datasette-agent-charts@0c3baa8953504908c552871cbd80a5d411c37db4 -
Branch / Tag:
refs/tags/0.1a2 - Owner: https://github.com/datasette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0c3baa8953504908c552871cbd80a5d411c37db4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file datasette_agent_charts-0.1a2-py3-none-any.whl.
File metadata
- Download URL: datasette_agent_charts-0.1a2-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c15a55a5695bab7aea77a58a2cf0251905e443d11d2ff8d4d1427c3c94f034d
|
|
| MD5 |
17cd979c39da8fc0d570d27158c585ff
|
|
| BLAKE2b-256 |
6a34ab162a42cbca03ff9365a720b8f9f67e2ed9316712c38390b25f0baf6494
|
Provenance
The following attestation bundles were made for datasette_agent_charts-0.1a2-py3-none-any.whl:
Publisher:
publish.yml on datasette/datasette-agent-charts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_agent_charts-0.1a2-py3-none-any.whl -
Subject digest:
3c15a55a5695bab7aea77a58a2cf0251905e443d11d2ff8d4d1427c3c94f034d - Sigstore transparency entry: 1592265792
- Sigstore integration time:
-
Permalink:
datasette/datasette-agent-charts@0c3baa8953504908c552871cbd80a5d411c37db4 -
Branch / Tag:
refs/tags/0.1a2 - Owner: https://github.com/datasette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0c3baa8953504908c552871cbd80a5d411c37db4 -
Trigger Event:
release
-
Statement type: