Skip to main content

crewai-chartquery

CrewAI tools for ChartQuery: turn data into charts, descriptions into diagrams, and text into QR codes, as image links.

Installation

pip install crewai-chartquery
export CHARTQUERY_API_KEY="your-api-key"

Get an API key at app.chartquery.com.

Tools

Tool What it does
ChartQueryChartTool Render a Chart.js chart through ChartQuery and return links to the image.
ChartQueryChartFromPromptTool Build a chart from a plain-words description through ChartQuery.
ChartQueryDiagramTool Render a diagram from its source through ChartQuery.
ChartQueryQRCodeTool Generate a QR code through ChartQuery.

Each tool takes api_key (defaults to CHARTQUERY_API_KEY), base_url and timeout, plus the settings shown in its docstring. Errors (invalid key, no credits, rate limit, timeout) come back to the agent as text, without the API key.

from crewai import Agent
from crewai_chartquery import ChartQueryChartTool, ChartQueryChartFromPromptTool

agent = Agent(
    role="Analyst",
    goal="Answer with data from ChartQuery",
    backstory="You use ChartQuery to turn data into charts.",
    tools=[ChartQueryChartTool(), ChartQueryChartFromPromptTool()],
)

print(ChartQueryChartTool().run(**{"chart_config": '{"type": "bar", "data": {"labels": ["a"]}}'}))

Development

pip install -e ".[test]"
pytest

License

MIT

Metadata

Release files for crewai-chartquery 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crewai-chartquery 0.1.0
File Size Uploaded Provenance Actions
crewai_chartquery-0.1.0.tar.gz 7.2 kB Without provenance Details for crewai_chartquery-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crewai-chartquery 0.1.0
File Interpreter ABI Platform Actions
crewai_chartquery-0.1.0-py3-none-any.whl Python 3 none any Details for crewai_chartquery-0.1.0-py3-none-any.whl

Total release size: 14.4 kB

Release files / crewai_chartquery-0.1.0.tar.gz

Download URL crewai_chartquery-0.1.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4e3e4ee194a3cc75661a09c087e16160bbb30fd9803ff2bc79c582b5e1e0c303
BLAKE2b-256 checksum
How to use checksums
b82c63af97c1fef349408900cda1e04f56a4ba871cb3e7502595ed7a72063e70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / crewai_chartquery-0.1.0-py3-none-any.whl

Download URL crewai_chartquery-0.1.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab4f057cb2ee69fd36c36d2c53b0ddbeb6a635badfaed2d6cd25f4f77fdc094b
BLAKE2b-256 checksum
How to use checksums
746083e0379d2cec80c8bf911e15b81c61c8eccf56e1da453814a8fed76d6def
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for crewai-chartquery 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page