wandb_osh.syncer#

Module Contents#

Classes#

WandbSyncer

Class for interpreting command files and triggering

Functions#

sync_dir(→ None)

Call wandb sync on a directory.

class wandb_osh.syncer.WandbSyncer(command_dir: os.PathLike = _command_dir_default, wait: int = 1, wandb_options: list[str] | None = None, *, timeout: int | float = 120)#

Class for interpreting command files and triggering wandb sync.

Parameters:
  • command_dir – Directory used for communication

  • wait – Minimal time to wait before scanning command dir again

  • wandb_options – Options to pass on to wandb

  • timeout – Timeout for wandb sync. If <=0, no timeout.

sync(dir: os.PathLike) None#

Sync a directory. Thin wrapper around the sync_dir function.

Parameters:

dir – Directory with wandb files to be synced

loop() None#

Read command files and trigger syncing

wandb_osh.syncer.sync_dir(dir: os.PathLike, options: list[str] | None = None, *, timeout: int | float = 0) None#

Call wandb sync on a directory.

Parameters:
  • dir – Directory with wandb runs

  • options – List of options to pass on to wandb sync

  • timeout – Timeout for wandb sync. If <=0: no timeout