swh.scheduler.cli.origin module

swh.scheduler.cli.origin.format_origins(origins: List[ListedOrigin], fields: Optional[List[str]] = None, with_header: bool = True)Iterable[str][source]

Format a list of origins as CSV.

Parameters
  • origins – list of origins to output

  • fields – optional list of fields to output (defaults to all fields)

  • with_header – if True, output a CSV header.