Skip to main content

mirascope-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 Mirascope four tools that call Datacircle's public API, https://api.datacircle.dev/v1. You need no key and no account.

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 mirascope-datacircle

The package needs Mirascope 2.0 or later and Python 3.10 or later. Also install Mirascope with the extra for your provider, for example pip install "mirascope[openai]".

Give the tools to a call

from mirascope import llm
from mirascope_datacircle import datacircle_tools

@llm.call("openai/gpt-5-mini", tools=datacircle_tools)
def ask(question: str) -> str:
    return question

response = ask("Which email finder API is best for under $5 per 1,000?")
while response.tool_calls:
    response = response.resume(response.execute_tools())
print(response.text())

The model picks a tool. response.execute_tools() runs every tool call in the response. response.resume() gives the model the results.

To add your own tools, list ours and yours together: tools=[*datacircle_tools, my_tool]. To give the model only two of our tools, list the two: tools=[datacircle_best_plans, datacircle_search_plans].

To stream, call ask.stream(...) and read the whole stream. Then call execute_tools() and resume(). You can also pass the tools to a call that takes an llm.Context.

Async calls

For an async call, use async_datacircle_tools. The four async tools have the same names as the sync tools. You await each step:

import asyncio

from mirascope import llm
from mirascope_datacircle import async_datacircle_tools

@llm.call("openai/gpt-5-mini", tools=async_datacircle_tools)
async def ask(question: str) -> str:
    return question

async def main():
    response = await ask("Who are the best LinkedIn profile API providers?")
    while response.tool_calls:
        response = await response.resume(await response.execute_tools())
    print(response.text())

asyncio.run(main())

You can also import each async tool by name from mirascope_datacircle.aio.

Call a tool yourself

from mirascope_datacircle import datacircle_best_plans

result = datacircle_best_plans("email-finder", limit=3)
print(result["plans"][0])

Each tool returns our API's answer as a Python dict.

Tool output for the model

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.

The tool raises a DatacircleError with the API's error message for an unknown slug. Mirascope gives the model the error message as the tool's output. 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. A number out of range gets the model an error and no API call.

The tools work with OpenAI's strict tool calls. In strict mode the model sends every parameter, so each optional parameter takes null.

Network

Each tool makes one HTTPS GET request to https://api.datacircle.dev/v1 and no other network calls. The request holds only the tool'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.

MIT license.

Metadata

Release files for mirascope-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)

Source distribution for mirascope-datacircle 0.1.0
File Size Uploaded Provenance Actions
mirascope_datacircle-0.1.0.tar.gz 10.0 kB Without provenance Details for mirascope_datacircle-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mirascope-datacircle 0.1.0
File Interpreter ABI Platform Actions
mirascope_datacircle-0.1.0-py3-none-any.whl Python 3 none any Details for mirascope_datacircle-0.1.0-py3-none-any.whl

Total release size: 19.9 kB

Release files / mirascope_datacircle-0.1.0.tar.gz

Download URL mirascope_datacircle-0.1.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c0d51083f6ab84abcca59426f402f4b2050d4673ff6d1d612bf8f4b82af16a32
BLAKE2b-256 checksum
How to use checksums
5d6df4291a1ffb2989d80c9ffe607ccd43fe75ae24f43add7e23464c7ff94bae
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 / mirascope_datacircle-0.1.0-py3-none-any.whl

Download URL mirascope_datacircle-0.1.0-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4c3a1db93515a6bd65f636baa9519f04c39045e075744a5ae0f0213663516b4
BLAKE2b-256 checksum
How to use checksums
ce20f6659cf0b1846809e2c26462fb9deda170e08c95b03dbc4e4114a274f788
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 mirascope-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.

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