Skip to main content
The pluto.query submodule exposes read-only helpers for fetching run data without writing your own HTTP client. Use these when you want to pull metrics into a notebook, compare runs in a script, or download artifacts from a finished training job. For the underlying HTTP API, see the API Reference. Every helper that takes a run ID accepts either a numeric ID (e.g. 12345) or a display ID (e.g. "MMP-42").

Helpers

All helpers raise on the network or auth error path; otherwise they return parsed Python objects. Authentication is resolved from PLUTO_API_KEY or your saved login.

Filtering runs

The API for filters is currently in preview. The API may change at any moment. Check in frequently for updates. Have feedback? Let’s get in touch at founders@trainy.ai
list_runs accepts a filters argument with a query language. It composes boolean logic ($and / $or / $not) over conditions over run configurations/status/staleness. Consider the following example that checks for runs that haven’t COMPLETED and haven’t reported any metrics in the past hour.

Operators

Fields

More examples

filters AND-combines with search, tags, and sort on the same call, and pages with limit / offset.
Filtering on heartbeat_at or summaryMetrics.*, and any $or / $not, require a project (they’re scoped to a single project). Unknown fields or operators return a 400.