Projects

An lazy iterator of Project objects.

An iterable interface to access projects created and saved by the entity.

Args
client (wandb.apis.internal.Api): The API client instance to use. entity (str): The entity name (username or team) to fetch projects for. per_page (int): Number of projects to fetch per request (default is 50).

Example:

from wandb.apis.public.api import Api

# Find projects that belong to this entity
projects = Api().projects(entity="entity")

# Iterate over files
for project in projects:
    print(f"Project: {project.name}")
    print(f"- URL: {project.url}")
    print(f"- Created at: {project.created_at}")
    print(f"- Is benchmark: {project.is_benchmark}")
Attributes
cursor Returns the cursor position for pagination of project results.
length Returns the total number of projects. Note: This property is not available for projects.
more Returns True if there are more projects to fetch. Returns False if there are no more projects to fetch.

Methods

convert_objects

View source

convert_objects()

Converts GraphQL edges to File objects.

next

View source

next() -> T

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

update_variables

View source

update_variables() -> None

Update the query variables for the next page fetch.

__getitem__

View source

__getitem__(
    index: (int | slice)
) -> (T | list[T])

__iter__

View source

__iter__() -> Iterator[T]
Class Variables
QUERY