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.1a0.tar.gz (10.5 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.1a0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datasette_agent_charts-0.1a0.tar.gz
  • Upload date:
  • Size: 10.5 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.1a0.tar.gz
Algorithm Hash digest
SHA256 2adf453f5d6e9403f300d6b3e49b82b7d983d574e913812dc8786c5b6564bb17
MD5 dc572812157e3eee1c317e9f82d1be6c
BLAKE2b-256 da9dfe6d9987342001be477ed774e28a100cec4b4c71a8fde06aea19ed253ab6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for datasette_agent_charts-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 9be06b80478d91d89f6a6ccad54b1f75e9330179fa0ffe4a8dac43815e901da5
MD5 b8b6d0137f3aca99a03b8605cf065310
BLAKE2b-256 2879aab6a27556b3d8525f899a8648e9b56be6bc448b8f8f3927c48ace420921

See more details on using hashes here.

Provenance

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