Skip to main content

Arcade TDK - Toolkit Development Kit for building Arcade tools

Project description

Arcade TDK (Toolkit Development Kit)

Toolkit Development Kit for building and testing Arcade tools.

Overview

Arcade TDK provides the essential tools and utilities for building Arcade tools:

  • Tool Decorator: Simple @tool decorator for creating Arcade tools
  • Authentication: Auth providers and helpers for tool security
  • Annotations: Type annotations and parameter validation
  • Core Integration: Seamless integration with arcade-core components

Installation

pip install arcade-tdk

Usage

from typing import Annotated

from arcade_tdk import tool

@tool
def hello_world(name: Annotated[str, "The name of the person to greet"]) -> str:
    """Say hello to someone."""
    return f"Hello, {name}!"

# The tool is automatically registered and available for use

Advanced Usage

from typing import Annotated

from arcade_tdk import tool, ToolCatalog, Toolkit
from arcade_tdk.auth import Reddit

# Create tools with auth requirement
@tool(requires_auth=Reddit(scopes=["read"]))
def get_posts_in_subreddit(
    subreddit: Annotated[str, "The name of the subreddit"],
    limit: Annotated[int, "The number of posts to return]
) -> dict:
    """Get posts from a specific subreddit"""
    # TODO: Implement your Reddit tool
    return {}

License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arcade_tdk-2.2.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arcade_tdk-2.2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file arcade_tdk-2.2.0.tar.gz.

File metadata

  • Download URL: arcade_tdk-2.2.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for arcade_tdk-2.2.0.tar.gz
Algorithm Hash digest
SHA256 bc8c2b8b2dfcaacbf006ff3ef67938ca1e8f2a06734bb42d2ae14fb42d565d60
MD5 7c4645795b1e6b860e1d7bacf44439d3
BLAKE2b-256 e7d50be887b74a4d83483094e5bb2372f087fa54d573fa76bbd3d546331a300a

See more details on using hashes here.

Provenance

The following attestation bundles were made for arcade_tdk-2.2.0.tar.gz:

Publisher: release-on-version-change.yml on ArcadeAI/arcade-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file arcade_tdk-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: arcade_tdk-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for arcade_tdk-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 111a84e7eeea9a4bbdf6cce17f5869e0e550575ec5601c2fdbeb8129983d7fdf
MD5 3753bf57fbdb0c605540815e03db8f62
BLAKE2b-256 1e9236c64e257e2ad4587b9c3a9bbd38b647b2bea981eea44fb36cadeb065ae3

See more details on using hashes here.

Provenance

The following attestation bundles were made for arcade_tdk-2.2.0-py3-none-any.whl:

Publisher: release-on-version-change.yml on ArcadeAI/arcade-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page