SplitWriterMixin

SplitWriterMixin#

class SplitWriterMixin(params=None, **kwargs)#

Bases: WriterAbstract[T_Source, T_Data]

Split data to multiple writing targets.

For that, we need to have an appropriate Source module that adheres to the Splitable protocol. This mixin checks this. It makes available the necessary methods directly to the Writer module.

Parameters:
  • params (Any | None)

  • kwargs (Any)

get_filename(**kwargs)#

Return a filename corresponding to current parameters and kwargs.

Parameters:

kwargs (Any)

Return type:

T_Source

setup()#

Set up module. Check the source is following the Splitable protocol.

Return type:

None

source: Splitable[T_Source]#
unfixed()#

Return set of parameters that are not fixed.

Return type:

set[T_Source]