pydantic-ai-datacircle
Find the best GTM APIs. We benchmark all the GTM APIs and we put the results on our website: https://datacircle.dev
This package gives Pydantic AI a toolset of four tools on Datacircle's open API, https://api.datacircle.dev/v1. You need no key and no account.
pip install pydantic-ai-datacircle
It needs only pydantic-ai-slim; add your model's client, like pip install "pydantic-ai-slim[anthropic]" for the example below, or install the whole pydantic-ai.
| Tool | What it gives | Call |
|---|---|---|
datacircle_list_apis |
Every GTM API on Datacircle, with its slug, number of plans and providers, and its best plan | GET /apis |
datacircle_best_plans |
One API's plans, best first by score out of 100, each with its rank and price per 1,000 calls | GET /apis/{slug}/best |
datacircle_search_plans |
Plans by provider or plan name, on every API or one, sorted by score, provider or price | GET /plans |
datacircle_provider |
The APIs a provider sells and its rank on each | GET /providers/{slug} |
Use
from pydantic_ai import Agent
from pydantic_ai_datacircle import datacircle_toolset
agent = Agent(
"anthropic:claude-sonnet-5-5",
instructions="Answer from the datacircle tools.",
toolsets=[datacircle_toolset()],
)
result = agent.run_sync("Which email finder API is best for under $5 per 1,000?")
print(result.output)
Any model Pydantic AI runs works. datacircle_toolset(include=["best_plans", "provider"]) gives only some of the tools. The toolset is a FunctionToolset, so it takes the toolset wrappers (.prefixed(), .filtered(), .approval_required()...) and works with run, run_sync, run_stream and iter. Pydantic AI 1.0 and later, Python 3.10 and later.
The same calls without an agent, each giving a dict:
import asyncio
from pydantic_ai_datacircle import Datacircle
print(asyncio.run(Datacircle().best_plans("email-finder", limit=3)))
Each plan comes with its rank, provider, plan, score, price per 1,000 (perThousand, in dollars) and its page on datacircle.dev, which lists every field. A slug can be a name: Bright Data is sent as bright-data. An unknown slug comes back as {"error": ...} with the API's words (an unknown API's answer lists every slug), so the model can call again; an argument out of range is refused by Pydantic AI before any call, and the model is asked to send it again.
Network
Each call makes one HTTPS GET to https://api.datacircle.dev/v1 with the tool's arguments and nothing else. The API takes up to 60 calls a minute from one address; the tools wait once, a minute at most, when it asks them to. datacircle_toolset(timeout=10) sets how long a call may take, and http_client= sends the calls through an httpx.AsyncClient of yours. Every plan is also one file at https://datacircle.dev/datacircle.json.
Links
- Datacircle: https://datacircle.dev
- The API: https://datacircle.dev/api
- Its spec: https://api.datacircle.dev/v1/openapi.json
- What each key means: https://datacircle.dev/fields
MIT license.
Metadata
Release files for pydantic-ai-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 |
|---|---|---|---|---|
| pydantic_ai_datacircle-0.1.0.tar.gz | 9.5 kB | Without provenance | Details for pydantic_ai_datacircle-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydantic_ai_datacircle-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pydantic_ai_datacircle-0.1.0-py3-none-any.whl |
Total release size: 18.5 kB
Release files / pydantic_ai_datacircle-0.1.0.tar.gz
| Download URL | pydantic_ai_datacircle-0.1.0.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4eeb3b3e2d0253ebe5a33b72587ad7ca459172281a5be6ae0d09da40222956c9
|
|
BLAKE2b-256 checksum How to use checksums |
a505faa514be887519d70606764ae0c99a6eb58b56b041250989722c8ff87723
|
| 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 / pydantic_ai_datacircle-0.1.0-py3-none-any.whl
| Download URL | pydantic_ai_datacircle-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4e86818d404a958c5e0c8afd789db13eb557dc72255ef35cc3eb530d846b666
|
|
BLAKE2b-256 checksum How to use checksums |
d26b60d754c9271b8bc3d8fdecf940575b8f2a0d0c4f7131355037d971ed5c41
|
| 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 pydantic-ai-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.