Skip to main content

A library to interact with Arize AI APIs

Project description

Arize Toolkit Logo

Tests Documentation PyPI Package Lint and Format Python Version uv Code style: black coverage CLI

📚 Documentation

Quick Links

Tools Documentation

Tool Category Description
Project/Model Tools Access and manage projects/models, retrieve performance metrics and traces/inference volumes
Monitor Tools Create, copy, and manage monitors and alerting
Custom Metrics Tools Create and manage custom metrics
Language Model Tools Work with prompts, annotations, evaluations, and LLM features
Space & Organization Tools Navigate and manage spaces, organizations, and projects
Data Import Tools Import data from cloud storage and databases
Trace Tools Query traces and spans, discover columns, and export trace data
Dashboard Tools Create and manage dashboards
Utility Tools Client configuration and utility functions

Extensions

Extension Description
Prompt Optimization Automated prompt improvement based on historical performance

Claude Code Plugin Marketplace

This repository is a Claude Code plugin marketplace with AI-assisted tools for the Arize platform.

# Add the marketplace
claude plugin marketplace add duncankmckinnon/arize_toolkit

# Install plugins
claude plugin install arize-toolkit@arize-toolkit
claude plugin install arize-toolkit-dev@arize-toolkit
Plugin Skills Description
arize-toolkit arize-toolkit-cli, arize-traces Manage Arize resources via CLI, debug traces
arize-toolkit-dev arize-graphql-analytics, new-query-workflow Developer workflows for adding new functionality

See the Plugin Marketplace docs for full details.

Arize Claude Code Tracing

For automatic tracing of Claude Code sessions to Arize AX or Phoenix, install the tracing plugin from the Arize Claude Code Plugin marketplace:

# Add the Arize plugin marketplace
claude plugin marketplace add Arize-ai/arize-claude-code-plugin

# Install the tracing plugin
claude plugin install claude-code-tracing@arize-claude-plugin
Plugin Skills Description
claude-code-tracing setup-claude-code-tracing Automatic tracing of Claude Code sessions with OpenInference spans (9 lifecycle hooks)

For Developers

Disclaimer

Although this package is used for development work with and within the Arize platform, it is not an Arize product. It is a open source project developed and maintained by an Arize Engineer. Feel free to add issues or reach out for help in the Arize community Slack channel.

Overview

Arize Toolkit is a set of tools packaged as a Python client that lets you easily interact with Arize AI APIs. Here's a quick overview of the main features in the current release:

  • Access and manage models
  • Retrieve performance metrics over a time period
  • Retrieve inference volume over a time period
  • Create, copy, and manage custom metrics
  • Create, copy, and manage monitors and alerting
  • Work with LLM features like prompts and annotations
  • Import data from cloud storage (S3, GCS, Azure) and databases (BigQuery, Snowflake, Databricks)
  • Create, update, and delete data import jobs with full lifecycle management
  • Prompt Optimization Extension (optional): Automatically optimize prompts using meta-prompt techniques with feedback from evaluators
  • Trace Inspection: List traces, retrieve spans with full attributes, discover available columns, and export to DataFrames or CSV
  • Command-Line Interface (optional): Manage all Arize resources directly from the terminal with Rich table output and JSON mode

Installation

pip install arize_toolkit

Optional Dependencies

Command-Line Interface

To use the arize_toolkit CLI, install with the cli extras:

pip install arize_toolkit[cli]

Prompt Optimization Extension

For automated prompt optimization using meta-prompt techniques, install with the prompt_optimizer extras:

pip install arize_toolkit[prompt_optimizer]

Command-Line Interface

The CLI wraps all Client functionality so you can manage models, monitors, prompts, and more directly from the terminal.

Quick Start

# One-time setup — saves credentials to ~/.arize_toolkit/config.toml
arize_toolkit config init

# List models (Rich table output by default)
arize_toolkit models list

# Same thing, using the "projects" alias
arize_toolkit projects list

# JSON output, pipe to jq
arize_toolkit --json models list | jq '.[].name'

# Get monitor details for a specific model
arize_toolkit monitors get "accuracy-alert" --model "fraud-detection-v3"

# Create a performance monitor
arize_toolkit monitors create-performance "accuracy-alert" \
    --model "fraud-detection-v3" \
    --environment production \
    --performance-metric accuracy \
    --threshold 0.95

# Use a named profile for a different environment
arize_toolkit --profile staging spaces list

Global Options

Flag Description
--version Show the installed version
--profile NAME Use a named configuration profile
--json Output raw JSON instead of Rich tables
--api-key KEY Override the API key
--org NAME Override the organization
--space NAME Override the space
--app-url URL Override the Arize app URL

Command Groups

Group Description
config Manage configuration profiles (init, list, show, use)
spaces List, create, and switch spaces or orgs
orgs List and create organizations
users Search users and manage space membership
models / projects List models, check volume, pull performance metrics
monitors Create, list, copy, and delete monitors
prompts Manage prompt templates and versions
custom-metrics Create and manage custom metrics
evaluators Manage LLM and code evaluators
dashboards Create and view dashboards
traces List traces, get spans, and discover available columns
imports Manage file and table import jobs

See the full CLI documentation for detailed usage and examples.

Client Setup

The Client class is the entrypoint for interacting with the toolkit. It provides maintains the connection information for making requests to the Arize APIs, and offers a wide range of operations for interacting with models, monitors, dashboards, and more.

API Key

To create a client, you need to provide your Arize API key. Use this reference to get your API key from the Arize UI.

Arize UI Path

Organization and Space

You will also need to provide an organization name and space name. To give some context, models are scoped to a space, and the space is scoped to an organization. These can be found by navigating to the Arize UI and looking at the upper left dropdown from the landing page. You will first select an organization from the dropdown and then pick the space from the available spaces in that organization.

For the example below, the organization is Demo Org and the space is Test Space.

Arize UI Path

For On Prem deployments

For SaaS users, the default API endpoint is always going to be https://api.arize.com. If you are using an on prem deployment of Arize, you will need to provide the api_url parameter. This parameters should just be the base url of your Arize instance.

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

arize_toolkit-1.0.18.tar.gz (3.9 MB view details)

Uploaded Source

Built Distribution

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

arize_toolkit-1.0.18-py3-none-any.whl (116.3 kB view details)

Uploaded Python 3

File details

Details for the file arize_toolkit-1.0.18.tar.gz.

File metadata

  • Download URL: arize_toolkit-1.0.18.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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":true}

File hashes

Hashes for arize_toolkit-1.0.18.tar.gz
Algorithm Hash digest
SHA256 77e56bf3d8c572ac24ad3770ebad9dc4a3708f4f30621a4c03057febf2930f25
MD5 057f97714803167238b1a1ebd2253529
BLAKE2b-256 d39817242fe6ad258ef87b290a4b46297e5a8149bf52dcdf156fb7ef4a57b659

See more details on using hashes here.

File details

Details for the file arize_toolkit-1.0.18-py3-none-any.whl.

File metadata

  • Download URL: arize_toolkit-1.0.18-py3-none-any.whl
  • Upload date:
  • Size: 116.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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":true}

File hashes

Hashes for arize_toolkit-1.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 d73c21f17a6f41f4d0112494e6eb60a107c3acc6f6a4b40d14f6a233aa53b1b0
MD5 c9358a7c20ce0da3577d0976b5a1bdfa
BLAKE2b-256 f7b030ea5733abac41c550b553de618c7e0b0204b543222c72dd86d67105a269

See more details on using hashes here.

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