singer_sdk.batch.Batcher

class singer_sdk.batch.Batcher[source]

Determines batch type and then serializes batches to that format.

classmethod get_batcher(name)[source]

Get a batcher by name.

Parameters:

name (str) – The name of the batcher.

Returns:

The batcher class.

Raises:

ValueError – If the batcher is not found.

Return type:

type[BaseBatcher]

get_batches(records)[source]

Manifest of batches.

Parameters:

records (Iterator[dict]) – The records to batch.

Returns:

A list of file paths (called a manifest).

Return type:

Iterator[list[str]]