Skip to main content

marvin-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 Marvin four tools that call Datacircle's open API, https://api.datacircle.dev/v1. Each tool is a plain Python function with type hints and a docstring. Marvin reads each tool's name, description and arguments from the type hints and the docstring. You need no key and no account.

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

marvin-datacircle works with Marvin 3.2.8 and later, on Python 3.11 and later. marvin-datacircle does not import marvin.

Marvin uses OpenAI's gpt-4o by default. To use another model, set MARVIN_AGENT_MODEL=anthropic:claude-haiku-5-5. You can also give one agent a model: marvin.Agent(model="anthropic:claude-haiku-5-5").

Use the tools in a run

Give the Datacircle tools to marvin.run:

import marvin
from marvin_datacircle import datacircle_tools

print(marvin.run("Who are the 3 best providers for the email-finder API?", tools=datacircle_tools()))

marvin.run_async and marvin.run_stream take the same tools.

Use the tools in an agent

Give the Datacircle tools to an Agent. The agent can use the tools on every task:

import marvin
from marvin_datacircle import datacircle_tools

agent = marvin.Agent(name="GTM", tools=datacircle_tools(), instructions="Use the Datacircle tools for questions on GTM APIs.")
print(agent.run("Which provider is first for the email-finder API, and on which other APIs does it rank?"))

Use the tools in a task

Give the Datacircle tools to a Task. Set result_type to choose the type of the task's result:

import marvin
from marvin_datacircle import datacircle_tools

task = marvin.Task("Name the 3 best providers for the email-finder API.", result_type=list[str], tools=datacircle_tools())
print(task.run())

Use the Datacircle tools beside your own tools

Put the Datacircle tools in one list with your own tools: tools=[*datacircle_tools(), my_tool].

To give the model only some of the tools, list their names: datacircle_tools(["datacircle_best_plans"]).

Call a tool yourself

You can call each tool without a model. You get the tool's answer as a dict:

from marvin_datacircle import datacircle_best_plans, run

print(datacircle_best_plans("email-finder", limit=3)["plans"])
print(run("datacircle_provider", {"slug": "Bright Data"}))

What the model reads

Each tool returns a dict. The model reads the dict as JSON. 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 returns {"error": "..."} with the API's message when the API gives no data, such as for an unknown slug. The error for an unknown API slug lists every valid slug. The tool checks each number from the model first. For a number out of range, the tool returns {"error": "..."} and makes no API call. If the network fails, the tool returns {"error": "..."} with the network error's message. The tool never raises an error, so your program keeps running. The model can 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 API can ask the tool to wait. The tool then waits once, for a minute at most. Each call uses only Python's standard library. Nothing goes to disk.

Metadata

Release files for marvin-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 marvin-datacircle 0.1.0
File Size Uploaded Provenance Actions
marvin_datacircle-0.1.0.tar.gz 13.2 kB Without provenance Details for marvin_datacircle-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 23.0 kB

Release files / marvin_datacircle-0.1.0.tar.gz

Download URL marvin_datacircle-0.1.0.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5026ca55a9b6342678a1108f82f60453e8789655c86b11dcbe5b2df54c96143d
BLAKE2b-256 checksum
How to use checksums
bf081f8597ad27d63f87cc97336c69fcf262876faa69016ef62100696b835b97
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 / marvin_datacircle-0.1.0-py3-none-any.whl

Download URL marvin_datacircle-0.1.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6eac62919376cd74a4e9e7009d82156b4209b11c67fb80fa1ad725215fb20daf
BLAKE2b-256 checksum
How to use checksums
258b7d000774061992be2a68a5566b89875b8af7ceaddec55b00f6d1c0383573
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 marvin-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