anthropic-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 the Anthropic Python SDK four tools that call Datacircle's open API, https://api.datacircle.dev/v1. You give them to the SDK's tool runner, which runs each call Claude makes. You need no key and no account for Datacircle.
| Tool | What the tool gives | Call |
|---|---|---|
datacircle_list_apis |
Every GTM API on Datacircle, with the API's slug, number of plans, number of providers and best plan | GET /apis |
datacircle_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 |
datacircle_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 |
datacircle_provider |
The APIs a provider sells, and the provider's rank on each API | GET /providers/{slug} |
Install
pip install anthropic-datacircle
anthropic-datacircle works with anthropic 0.68.0 and later, on Python 3.9 and later.
Use the tools
Give the tools to the tool runner. The runner runs each call and sends the answer back to Claude:
import anthropic
from anthropic_datacircle import datacircle_tools
client = anthropic.Anthropic()
runner = client.beta.messages.tool_runner(
model="claude-opus-5-5",
max_tokens=16000,
tools=datacircle_tools(),
messages=[{"role": "user", "content": "Who are the 3 best providers for the email-finder API?"}],
)
message = runner.until_done()
print(next(block.text for block in message.content if block.type == "text"))
You can also loop over the runner (for message in runner:) to see each message. With stream=True, the runner gives you a stream for each message.
With AsyncAnthropic, use datacircle_async_tools(). Each async tool runs its HTTPS request in a worker thread, so your event loop keeps running:
import anthropic
from anthropic_datacircle import datacircle_async_tools
client = anthropic.AsyncAnthropic()
runner = client.beta.messages.tool_runner(
model="claude-opus-5-5",
max_tokens=16000,
tools=datacircle_async_tools(),
messages=[{"role": "user", "content": "What does Bright Data sell?"}],
)
message = await runner.until_done()
Use them beside your own tools
You can put the Datacircle tools in the same list as yours: tools=[*datacircle_tools(), get_weather]. To give Claude only some of the tools, list their names: datacircle_tools(["datacircle_best_plans"]).
Run the calls yourself
In a loop of your own on client.messages.create(), send each tool's definition with tool.to_dict(). Then tool_results() runs the Datacircle calls in a reply. It gives you one tool_result block for each call, with the call's id. Calls of your own tools are left out, for your code to run:
import anthropic
from anthropic_datacircle import datacircle_tools, tool_results
client = anthropic.Anthropic()
tools = [tool.to_dict() for tool in datacircle_tools()]
messages = [{"role": "user", "content": "What does Bright Data sell?"}]
reply = client.messages.create(model="claude-opus-5-5", max_tokens=16000, tools=tools, messages=messages)
while reply.stop_reason == "tool_use":
messages.append({"role": "assistant", "content": reply.content})
messages.append({"role": "user", "content": tool_results(reply)})
reply = client.messages.create(model="claude-opus-5-5", max_tokens=16000, tools=tools, messages=messages)
print(next(block.text for block in reply.content if block.type == "text"))
With AsyncAnthropic, use await atool_results(reply). It runs the calls at the same time.
Call a tool yourself
You can call each tool without Claude. You get the tool's answer as JSON text:
import json
from anthropic_datacircle import best_plans
answer = json.loads(best_plans("email-finder", limit=3))
print(answer["plans"])
The other functions are list_apis(), search_plans() and provider().
What Claude reads
Each tool gives Claude 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. 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.
When the API gives no data, such as for an unknown slug, the tool raises DatacircleError with the API's message. The runner sends that message to Claude as the call's result, with is_error. The error for an unknown API slug lists every valid slug. The tool checks each number first. For a number out of range, the tool raises the error and makes no API call. If the network fails, the error holds the network error's message. Claude can then call the tool again.
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. Each call uses only Python's standard library. Nothing goes to disk.
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 anthropic-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 |
|---|---|---|---|---|
| anthropic_datacircle-0.1.0.tar.gz | 14.1 kB | Without provenance | Details for anthropic_datacircle-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anthropic_datacircle-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for anthropic_datacircle-0.1.0-py3-none-any.whl |
Total release size: 25.7 kB
Release files / anthropic_datacircle-0.1.0.tar.gz
| Download URL | anthropic_datacircle-0.1.0.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02e605ae2300dcdecc49717ac6a83620b2329fd5ccda772c502fce52066ff775
|
|
BLAKE2b-256 checksum How to use checksums |
2836bc19318ff9d74cd5c78c37c6d29d9e64447366f30c7affa1ac65057399ca
|
| 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 / anthropic_datacircle-0.1.0-py3-none-any.whl
| Download URL | anthropic_datacircle-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4350eabea7e2d9d4db63e8c73e2ba1a72c8a41aa13b729fcb3647035353cc3d0
|
|
BLAKE2b-256 checksum How to use checksums |
73e6ef73b38496a6c7c128cc524792a06f91cb8f5eb770e626aeb3daa828c967
|
| 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 anthropic-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.