Skip to main content

class Artifacts

(service_api: 'ServiceApi',
entity: 'str',
project: 'str',
collection_name: 'str',
type: 'str',
filters: 'Mapping[str, Any] | None' = None,
order: 'str | None' = None,
per_page: 'int' = 50,
tags: 'str | list[str] | None' = None,
start: 'str | None' = None)

Description

An iterable collection of artifact versions associated with a project. Optionally pass in filters to narrow down the results based on specific criteria.

Args

  • service_api: Interface to the wandb-core service that performs W&B API calls for these artifact versions.
  • entity: The entity (user or team) that owns the project.
  • project: The name of the project to query for artifacts.
  • collection_name: The name of the artifact collection to query.
  • type: The type of the artifacts to query. Common examples include “dataset” or “model”.
  • filters: Optional mapping of filters to apply to the query.
  • order: Optional string to specify the order of the results. If prefixed with ’+’, sorts ascending (default). If prefixed with ’-’, sorts descending.
  • per_page: The number of artifact versions to fetch per page. Default is 50.
  • start:

Methods

method next

self
Return the next item from the iterator. When exhausted, raise StopIteration

method update_variables

self
Update the query variables for the next page fetch.