Skip to main content

qwen-agent-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 Qwen-Agent 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 qwen-agent-datacircle

The package needs Qwen-Agent 0.0.15 or later and Python 3.9 or later.

Give the tools to an agent

Importing the package registers the four tools with Qwen-Agent. Then you pass the tool names to an agent:

import qwen_agent_datacircle
from qwen_agent.agents import Assistant

llm_cfg = {"model": "qwen3-32b", "model_server": "http://localhost:8000/v1", "api_key": "EMPTY"}
bot = Assistant(llm=llm_cfg, function_list=qwen_agent_datacircle.NAMES)

messages = [{"role": "user", "content": "Which email finder API is best for under $5 per 1,000?"}]
responses = bot.run_nonstream(messages)
print(responses[-1]["content"])

The model picks a tool. The agent runs the tool and gives the model the result. The tools work with Qwen-Agent's own function calling prompt and with ReActChat. To use the model's native tool calls, set "use_raw_api": True in generate_cfg. Some model servers give only native tool calls. Ollama gives only native tool calls for some models.

To add the Datacircle tools to your own tools, list every tool name: function_list=["code_interpreter", *qwen_agent_datacircle.NAMES].

To give an agent only a few Datacircle tools, list only those names: function_list=["datacircle_best_plans", "datacircle_search_plans"]. A tool instance works too: function_list=[qwen_agent_datacircle.DatacircleBestPlans()].

Call a tool yourself

Each tool takes arguments as JSON text or a dict, the same as Qwen-Agent sends. Each tool returns JSON text:

import json
from qwen_agent_datacircle import DatacircleBestPlans

result = json.loads(DatacircleBestPlans().call({"slug": "email-finder", "limit": 3}))
print(result["plans"][0])

The functions list_apis, best_plans, search_plans and provider return each tool's output as Python dicts.

Tool output for the model

Each result is our API's answer 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.

For an unknown slug, the model gets {"error": ...} with a list of 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. For a number out of range, the tool makes no API call. The model gets {"error": ...} instead.

Network

Each tool call 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 qwen-agent-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 qwen-agent-datacircle 0.1.0
File Size Uploaded Provenance Actions
qwen_agent_datacircle-0.1.0.tar.gz 11.6 kB Without provenance Details for qwen_agent_datacircle-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 21.4 kB

Release files / qwen_agent_datacircle-0.1.0.tar.gz

Download URL qwen_agent_datacircle-0.1.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
57b5255ba697e7a2fe962a57deb3a53712c3f818725885b72a175aacc37154e3
BLAKE2b-256 checksum
How to use checksums
7115004d5e6b1943ad76c1dcf2ccece588ecd938559fbc8757e44631be48020b
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 / qwen_agent_datacircle-0.1.0-py3-none-any.whl

Download URL qwen_agent_datacircle-0.1.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9140aa3a9829a997a0dd9c54460d998041f3b53a02b190939248fabe964077c9
BLAKE2b-256 checksum
How to use checksums
e1b68cec80c513ae2af6b819fd6712645d95566b1eeb455aae3c212e6c611fe6
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 qwen-agent-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