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.1a1.tar.gz (11.4 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.1a1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file datasette_agent_charts-0.1a1.tar.gz.

File metadata

  • Download URL: datasette_agent_charts-0.1a1.tar.gz
  • Upload date:
  • Size: 11.4 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.1a1.tar.gz
Algorithm Hash digest
SHA256 d1ac85a7f719278d5a24da23255e617d0fabbde4cd39ef031755c1b4e900ae67
MD5 e6d5a7d4fc95600eea06e2c626590b33
BLAKE2b-256 96029f331995682cfccb41864a41df69d6f43ffbd983a45e838f5ce346f5b275

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_agent_charts-0.1a1.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.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_agent_charts-0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 8bae9d8324aa0370f6dbb66b755e7b001c80281e5e37a23782d1be1acbf87805
MD5 8f531c45a2ae0ccaeb8a9ff0f2d5bf9c
BLAKE2b-256 7ea1905a343d93dfba96a4a7b848246be453bcdb8185df1b2889cab312183ea5

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_agent_charts-0.1a1-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