Datacircle tools for the BeeAI Framework
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 the BeeAI Framework (Python) four tools that call Datacircle's open API, https://api.datacircle.dev/v1. They work in BeeAI's agents: RequirementAgent, ReActAgent, ToolCallingAgent, LiteAgent and the agents of an AgentWorkflow. You need no key and no account.
| Tool | Class | What the tool gives | Call |
|---|---|---|---|
datacircle_list_apis |
DatacircleListApisTool |
Every GTM API on Datacircle, with the API's slug, number of plans, number of providers and best plan | GET /apis |
datacircle_best_plans |
DatacircleBestPlansTool |
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 |
datacircle_search_plans |
DatacircleSearchPlansTool |
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 |
datacircle_provider |
DatacircleProviderTool |
The APIs a provider sells, and the provider's rank on each API | GET /providers/{slug} |
Install
pip install beeai-datacircle
beeai-datacircle works with beeai-framework 0.1.30 and later, on Python 3.11 to 3.13. Import RequirementAgent from beeai_framework.agents.experimental if your beeai-framework is older than 0.1.51.
Use the tools in an agent
Give the tools to an agent:
import asyncio
from beeai_framework.agents.requirement import RequirementAgent
from beeai_framework.backend import ChatModel
from beeai_datacircle import datacircle_tools
async def main():
agent = RequirementAgent(llm=ChatModel.from_name("openai:gpt-5.5"), tools=datacircle_tools())
response = await agent.run("Who are the 3 best providers for the email-finder API?")
print(response.last_message.text)
asyncio.run(main())
ReActAgent, ToolCallingAgent and LiteAgent take the same tools. You can put them in one list with your own tools: tools=[*datacircle_tools(), my_tool].
Each tool is a class. You can name a tool in a requirement:
from beeai_framework.agents.requirement.requirements.conditional import ConditionalRequirement
from beeai_datacircle import DatacircleListApisTool, datacircle_tools
agent = RequirementAgent(
llm=llm,
tools=datacircle_tools(),
requirements=[ConditionalRequirement(DatacircleListApisTool, force_at_step=1)],
)
To give the agent only some of the tools, create only those classes: tools=[DatacircleBestPlansTool(), DatacircleSearchPlansTool()].
Run a tool yourself
You can run each tool without a model, the same way an agent runs the tool:
from beeai_datacircle import DatacircleBestPlansTool
output = await DatacircleBestPlansTool().run({"slug": "email-finder", "limit": 3})
print(output.result["plans"])
Or call the API without BeeAI. You get back the API's answer as a dict:
from beeai_datacircle import best_plans
answer = await best_plans("email-finder", limit=3)
You can import three more functions: list_apis(), search_plans() and provider_ranks().
What the model reads
Each tool gives the model a JSON object as text. Each plan comes with a rank, provider, plan, score, price per 1,000 (perThousand, in dollars) and a page on datacircle.dev. The page on datacircle.dev lists every field.
You can give a provider's name in place of a slug. The tool turns Bright Data into bright-data.
The tool returns {"error": "..."} with the API's message when the API gives no data, for example for an unknown slug. BeeAI refuses input that does not fit the schema with a ToolInputValidationError. The agent then tells the model what was wrong. If the network fails, the tool raises DatacircleError, a subclass of ToolError. The agent passes the error to the model. The model can then call the tool again.
Each tool takes BeeAI's options, like cache, and BeeAI's run options, like retry_options. Each tool also takes base_url, the API's address. datacircle_tools(options, base_url=...) gives each tool the same options. For a proxy, set HTTPS_PROXY.
Network
Each tool call makes one HTTPS GET request to https://api.datacircle.dev/v1 and nothing else. The request holds only the tool's own arguments: no key and nothing from your chats. The API takes up to 60 calls a minute from one IP address. The tool waits once, for a minute at most, when the API asks the tool to wait. The package needs only beeai-framework, httpx and pydantic. The package stores nothing.
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 beeai-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 |
|---|---|---|---|---|
| beeai_datacircle-0.1.0.tar.gz | 12.0 kB | Without provenance | Details for beeai_datacircle-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| beeai_datacircle-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for beeai_datacircle-0.1.0-py3-none-any.whl |
Total release size: 23.4 kB
Release files / beeai_datacircle-0.1.0.tar.gz
| Download URL | beeai_datacircle-0.1.0.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6b06f5ef83b54f86f6dd36a50a6929ac965e4b6d1a3cb9ea6cd1df85143ae6f
|
|
BLAKE2b-256 checksum How to use checksums |
ebaee3bbd06aeccf72a290f59469472ec1965dda2a00a80465605cf663f14688
|
| 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 / beeai_datacircle-0.1.0-py3-none-any.whl
| Download URL | beeai_datacircle-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7d85c06cce77aeb3ef5a69c84c76dd3641fd94ea0a559cebe2e5be2032633bb
|
|
BLAKE2b-256 checksum How to use checksums |
539a3ff0e4813d1c54d65d1a0e69e994c364aace7b7e586ea071af8e0952b429
|
| 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 beeai-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.