Projects
less than a minute
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
convert_objects()
Converts GraphQL edges to File objects.
next
next() -> T
Return the next item from the iterator. When exhausted, raise StopIteration
update_variables
update_variables() -> None
Update the query variables for the next page fetch.
__getitem__
__getitem__(
index: (int | slice)
) -> (T | list[T])
__iter__
__iter__() -> Iterator[T]
Class Variables | |
---|---|
QUERY |
Feedback
Was this page helpful?
Glad to hear it! If you have more to say, please let us know.
Sorry to hear that. Please tell us how we can improve.