Skip to main content

class Artifacts

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 Paginator.next()

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

method Paginator.update_variables()

Update the query variables for the next page fetch.