Class wandb.Artifact
property aliases
List of one or more semantically-friendly references or identifying “nicknames” assigned to an artifact version. Aliases are mutable references that you can programmatically reference. Change an artifact’s alias with the W&B App UI or programmatically. See Create new artifact versions for more information.property collection
The collection this artifact is retrieved from. A collection is an ordered group of artifact versions. If this artifact is retrieved from a collection that it is linked to, return that collection. Otherwise, return the collection that the artifact version originates from. The collection that an artifact originates from is known as the source sequence.property commit_hash
The hash returned when this artifact was committed.property created_at
Timestamp when the artifact was created.property description
A description of the artifact.property digest
The logical digest of the artifact. The digest is the checksum of the artifact’s contents. If an artifact has the same digest as the currentlatest version, then log_artifact is a no-op.
property entity
The name of the entity that the artifact collection belongs to. If the artifact is a link, the entity will be the entity of the linked artifact.property file_count
The number of files (including references).property history_step
The nearest step which logged history metrics for this artifact’s source run.property id
The artifact’s ID.property is_link
Boolean flag indicating if the artifact is a link artifact. True: The artifact is a link artifact to a source artifact. False: The artifact is a source artifact.property linked_artifacts
Returns a list of all the linked artifacts of a source artifact. If this artifact is a link artifact (artifact.is_link == True),
it will return an empty list.
Limited to 500 results.
property manifest
The artifact’s manifest. The manifest lists all of its contents, and can’t be changed once the artifact has been logged.property metadata
User-defined artifact metadata. Structured data associated with the artifact.property name
The artifact name and version of the artifact. A string with the format{collection}:{alias}. If fetched before an artifact is
logged/saved, the name won’t contain the alias.
If the artifact is a link, the name will be the name of the linked artifact.
property project
The name of the project that the artifact collection belongs to. If the artifact is a link, the project will be the project of the linked artifact.property qualified_name
The entity/project/name of the artifact. If the artifact is a link, the qualified name will be the qualified name of the linked artifact path.property size
The total size of the artifact in bytes. Includes any references tracked by this artifact.property source_artifact
Returns the source artifact, which is the original logged artifact. If this artifact is a source artifact (artifact.is_link == False),
it will return itself.
property source_collection
The artifact’s source collection. The source collection is the collection that the artifact was logged from.property source_entity
The name of the entity of the source artifact.property source_name
The artifact name and version of the source artifact. A string with the format{source_collection}:{alias}. Before the artifact
is saved, contains only the name since the version is not yet known.
property source_project
The name of the project of the source artifact.property source_qualified_name
The source_entity/source_project/source_name of the source artifact.property source_version
The source artifact’s version. A string with the formatv{number}.
property state
The status of the artifact. One of: “PENDING”, “COMMITTED”, or “DELETED”.property tags
List of one or more tags assigned to this artifact version.property ttl
The time-to-live (TTL) policy of an artifact. Artifacts are deleted shortly after a TTL policy’s duration passes. If set toNone, the artifact deactivates TTL policies and will be not
scheduled for deletion, even if there is a team default TTL.
An artifact inherits a TTL policy from
the team default if the team administrator defines a default
TTL and there is no custom policy set on an artifact.
property type
The artifact’s type. Common types includedataset or model.
property updated_at
The time when the artifact was last updated.property url
Constructs the URL of the artifact.property use_as
Deprecated.property version
The artifact’s version. A string with the formatv{number}.
If this is a link artifact, the version will be from the linked collection.