Skip to main content

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-sdk-testing.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Description

A lazy iterator of Project objects. An iterable interface to access projects created and saved by the entity.

Args

  • client: Legacy GraphQL client retained for API compatibility.
  • entity: The entity name (username or team) to fetch projects for.
  • per_page: Number of projects to fetch per request (default is 50).
  • service_api: Interface to the wandb-core service that performs W&B API calls for this collection.

Examples

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}")

Methods

method next

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

method update_variables

self
Update the query variables for the next page fetch.