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

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt

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

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

次に取得するページの開始位置を示す、内部構造が公開されていないカーソルです。 この値は保存しておき、後でページネーションされたクエリに start= として渡すことで、このページネーターが前回終了した位置から反復を再開できます。 戻り値:
  • str | None: カーソルのプロパティ値です。

プロパティ Projects.more