Skip to main content

Datacircle tools for the GitHub Copilot SDK (Python)

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 GitHub Copilot SDK for Python four tools that call Datacircle's open API, https://api.datacircle.dev/v1. The SDK's define_tool makes each tool. You put the four tools in a session beside your own tools. 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, best score out of 100 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 microsoft-copilot-sdk copilot-sdk-datacircle

The tools work with microsoft-copilot-sdk 2.0.0 and later. They also work with github-copilot-sdk 1.0.0 and later. Before 2.0, the SDK had the name github-copilot-sdk. They need Python 3.11 or later.

Use the tools

Give the tools to create_session():

import asyncio

from copilot import CopilotClient
from copilot.session import PermissionHandler
from copilot_sdk_datacircle import datacircle_tools


async def main():
    async with CopilotClient(mode="coding-agent") as client:
        async with await client.create_session(
            model="gpt-5",
            permissions={"on_request": PermissionHandler.approve_all},
            tools={"definitions": datacircle_tools()},
        ) as session:
            reply = await session.send_and_wait("Who are the 3 best providers for the email-finder API?", timeout=300)
            print(reply.data.content)


asyncio.run(main())

On github-copilot-sdk 1.x, pass the list itself as tools=datacircle_tools(). Pass the permission handler as on_permission_request=.

You can put the tools beside your own tools:

tools={"definitions": [*datacircle_tools(), lookup_issue]}

In mode="empty", a session runs only the tools in available_tools. Add the custom tools to available_tools: tools={"definitions": datacircle_tools(), "available_tools": ToolSet().add_custom("*")}. Import ToolSet from copilot.

To give the model only some of the tools, filter them by name: [t for t in datacircle_tools() if t.name != "datacircle_provider"].

The tools only read data. They run with no permission prompt. With datacircle_tools(skip_permission=False), your permission handler decides each call.

Make each call yourself

You can make each call without a model. Each call returns the answer as a dict:

from copilot_sdk_datacircle import best_plans

answer = await best_plans("email-finder", limit=3)
print(answer["plans"])

The other calls are list_apis(), search_plans() and provider_ranks(). If the API refuses a call, the dict is {"error": ...} with the API's message.

What the model reads

Each tool gives the model 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. The page on datacircle.dev lists every field.

For an unknown slug, the model gets a failure with the API's message. The failure also names the tool to call instead. If an input does not fit the schema, the model gets a failure that names the wrong argument. If the network fails, the model gets a failure with the network error's message. After a failure, the model can call the tool again and keep working.

datacircle_tools(timeout=10) makes each call wait 10 seconds at most for an answer. The default is 30 seconds.

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. After a 429 answer (too many calls), the tool waits up to a minute and tries once more. The package needs the SDK, httpx and Pydantic. The package stores nothing.

MIT license.

Metadata

Release files for copilot-sdk-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 copilot-sdk-datacircle 0.1.0
File Size Uploaded Provenance Actions
copilot_sdk_datacircle-0.1.0.tar.gz 13.7 kB Without provenance Details for copilot_sdk_datacircle-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 26.4 kB

Release files / copilot_sdk_datacircle-0.1.0.tar.gz

Download URL copilot_sdk_datacircle-0.1.0.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
27f680bd941fbf10d66221bb9a097ef0ded1cd33b7929ac562983b3edfd17ab9
BLAKE2b-256 checksum
How to use checksums
7201d2892f8119837a52580b22dfba787d6426a9b952e0678f31f00d6349980e
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 / copilot_sdk_datacircle-0.1.0-py3-none-any.whl

Download URL copilot_sdk_datacircle-0.1.0-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a420aa6e8e1e8b35c1a00471f82cb154021056d6aa0cb0a49b98e4f3cd3e7f64
BLAKE2b-256 checksum
How to use checksums
4ca5c9b8493d12dd93bd1ae5b128268e6182f9984eb94ac9d3c881cacd5308c8
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 copilot-sdk-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