Skip to main content

class ArtifactType

An artifact object that satisfies query based on the specified type. Args:
  • client: The client instance to use for querying W&B.
  • entity: The entity (user or team) that owns the project.
  • project: The name of the project to query for artifact types.
  • type_name: The name of the artifact type.
  • attrs: Optional attributes to initialize the ArtifactType. If omitted, the object will load its attributes from W&B upon initialization.

property ArtifactType.id

The unique identifier of the artifact type. Returns:
  • str: The id property value.

property ArtifactType.name

The name of the artifact type. Returns:
  • str: The name property value.

method ArtifactType.collection

collection(name: 'str') → ArtifactCollection
Get a specific artifact collection by name. Args:
  • name (str): The name of the artifact collection to retrieve.

method ArtifactType.collections

collections(
    filters: 'Mapping[str, Any] | None' = None,
    order: 'str | None' = None,
    per_page: 'int' = 50
) → ArtifactCollections
Get all artifact collections associated with this artifact type. Args:
  • filters (dict): Optional mapping of filters to apply to the query.
  • order (str): Optional string to specify the order of the results. If you prepend order with a + order is ascending (default). If you prepend order with a - order is descending. The default order is the collection ID in descending order.
  • per_page (int): The number of artifact collections to fetch per page. Default is 50.