Skip to main content

Class wandb.apis.public.Files

A lazy iterator over a collection of File objects. Access and manage files uploaded to W&B during a run. Handles pagination automatically when iterating through large collections of files.

Args

ServiceApi
The service API instance to use for querying W&B.
Run
The run object that contains the files
list[str] | None
A list of file names to filter the files
int
The number of files to fetch per page
bool
If True, fetch the upload URL for each file
str | None
Pattern to match when returning files from W&B This pattern uses mySQL’s LIKE syntax, so matching all files that end with .json would be “%.json”. If both names and pattern are provided, a ValueError will be raised.

Examples