メインコンテンツへスキップ

class Projects

Project オブジェクトの遅延イテレータ。 entity が作成して保存したプロジェクトにアクセスするためのイテラブルなインターフェース。

method Projects.__init__

__init__(
    client: 'RetryingClient',
    entity: 'str',
    per_page: 'int' = 50
) → Projects
引数:
  • client (wandb.apis.internal.Api): 使用する API クライアントのインスタンス。
  • entity (str): プロジェクトを取得する対象の entity 名 (ユーザー名またはチーム名) 。
  • per_page (int): リクエストごとに取得するプロジェクト数 (デフォルトは 50) 。
例:
from wandb.apis.public.api import Api

# このentityに属するプロジェクトを検索する
projects = Api().projects(entity="entity")

# ファイルを反復処理する
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}")
Project オブジェクトの反復可能なコレクション。 引数:
  • client: W&B をクエリする際に使用する API クライアント。
  • entity: プロジェクトを所有する entity。
  • per_page: API へのリクエストごとに取得するプロジェクト数。

プロパティ Projects.cursor


プロパティ Projects.more