Skip to main content

class Files

Description

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

  • service_api: The service API instance to use for querying W&B.
  • run: The run object that contains the files
  • names: A list of file names to filter the files
  • per_page: The number of files to fetch per page
  • upload: If True, fetch the upload URL for each file
  • pattern: 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

Methods

method Paginator.next()

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