Skip to main content

Observable Plot charts for Datasette Agent

Project description

datasette-agent-charts

PyPI Changelog Tests License

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


Download files

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

Source Distribution

datasette_agent_charts-0.1a2.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette_agent_charts-0.1a2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

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

Hashes for datasette_agent_charts-0.1a2.tar.gz
Algorithm Hash digest
SHA256 ed130eafddab2d6ff54cbfa20e2088e44b4ce4c77c7562b30d99980dff63065a
MD5 5cca8b3fa0faad74d4b88cebe9af6431
BLAKE2b-256 cd6835aaf4bf570e57569b712e6bc2e7370c3f4e54a773c46fa767982c59d68b

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_agent_charts-0.1a2.tar.gz:

Publisher: publish.yml on datasette/datasette-agent-charts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datasette_agent_charts-0.1a2-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_agent_charts-0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 3c15a55a5695bab7aea77a58a2cf0251905e443d11d2ff8d4d1427c3c94f034d
MD5 17cd979c39da8fc0d570d27158c585ff
BLAKE2b-256 6a34ab162a42cbca03ff9365a720b8f9f67e2ed9316712c38390b25f0baf6494

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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