griptape-datacircle
Find the best GTM APIs. We benchmark all the GTM APIs and we put the results on our website.
Our website: https://datacircle.dev
This package gives Griptape a tool, DatacircleTool, that calls Datacircle's public API, https://api.datacircle.dev/v1. You need no key and no account.
The tool has four activities:
| Activity | Gives | Call |
|---|---|---|
list_apis |
Every GTM API on Datacircle, with the API's slug, number of plans, number of providers and best plan | GET /apis |
best_plans |
One API's plans, sorted by score out of 100, best first. Each plan comes with a rank and a price per 1,000 calls | GET /apis/{slug}/best |
search_plans |
Plans that match a provider or plan name, on all APIs or on one API. You can sort them by score, provider or price | GET /plans |
provider |
The APIs a provider sells, and the provider's rank on each API | GET /providers/{slug} |
Install
pip install griptape-datacircle
The package needs Griptape 1.1 or later and Python 3.10 or later.
Give the tool to an agent
from griptape.structures import Agent
from griptape_datacircle import DatacircleTool
agent = Agent(tools=[DatacircleTool()])
agent.run("Which email finder API is best for under $5 per 1,000?")
print(agent.output.value)
The model picks an activity. The agent runs the activity and gives the model the result. The tool works with the model's native tool calls and with Griptape's actions prompt (use_native_tools=False). A PromptTask in a Pipeline or a Workflow takes the tool too: PromptTask(tools=[DatacircleTool()]).
To use the tool with your own tools, list them all: Agent(tools=[MyTool(), DatacircleTool()]).
To give only some activities, name them: DatacircleTool(allowlist=["best_plans", "search_plans"]).
Call an activity yourself
Griptape passes each activity the input as {"values": ...}. Wrap your input the same way when you call one:
from griptape_datacircle import DatacircleTool
result = DatacircleTool().best_plans({"values": {"slug": "email-finder", "limit": 3}})
print(result.value["plans"][0])
The functions list_apis, best_plans, search_plans and provider return each activity's output as Python dicts.
Tool output for the model
Each result is a JsonArtifact with our API's answer. Each plan comes with a rank, provider, plan, score, price per 1,000 (perThousand, in dollars) and a page on datacircle.dev. That page lists every field.
You can give a provider's name in place of a slug. The tool turns Bright Data into bright-data.
For an unknown slug, the model gets an ErrorArtifact with the API's error message. The error message for an unknown API slug lists every valid slug. The model can then pick a valid slug and call the tool again. The tool checks each value from the model before the API call. The model gets an ErrorArtifact for a number out of range. The tool then makes no API call.
Network
Each activity makes one HTTPS GET request to https://api.datacircle.dev/v1 and no other network calls. The request holds only the activity's input. The API takes up to 60 calls a minute from one IP address. If the API says to wait, the tool waits up to a minute. The tool waits at most once per call. All plans are in one file at https://datacircle.dev/datacircle.json.
Links
- Datacircle: https://datacircle.dev
- The API: https://datacircle.dev/api
- The API's spec: https://api.datacircle.dev/v1/openapi.json
- What each key means: https://datacircle.dev/fields
MIT license.
Metadata
Release files for griptape-datacircle 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| griptape_datacircle-0.1.0.tar.gz | 10.4 kB | Without provenance | Details for griptape_datacircle-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| griptape_datacircle-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for griptape_datacircle-0.1.0-py3-none-any.whl |
Total release size: 19.7 kB
Release files / griptape_datacircle-0.1.0.tar.gz
| Download URL | griptape_datacircle-0.1.0.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fff08dfeda2cacc9d5c63fa1cafea9f055b0e018e14db3f015122251601a72fd
|
|
BLAKE2b-256 checksum How to use checksums |
e239c99e7645285d4aa7b96e0570ba8bc43630e74de79b4539d1c3efdf11bfb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / griptape_datacircle-0.1.0-py3-none-any.whl
| Download URL | griptape_datacircle-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
faf8754a8ead268ccdbbddbca99b44f7288fb1b894798c5bdd068a1fd59988d1
|
|
BLAKE2b-256 checksum How to use checksums |
8243363886d633eea123c77f8296e64d58ec410e2457b3a7a20c87416a3373c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for griptape-datacircle 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.