omnipy.components.raw.tasks
Tasks for decoding, editing, concatenating, and unioning raw datasets.
| FUNCTION | DESCRIPTION |
|---|---|
concat_all |
Concatenate all dataset values using their native addition semantics. |
decode_bytes |
Decode each binary data file to text, auto-detecting encoding when none is supplied. |
modify_all_lines |
Apply a callable to stripped lines and join the result with OS-specific newlines. |
modify_datafile_content |
Apply a callable to each full text data file. |
modify_each_line |
Apply a callable to each line and rebuild the text from returned lines. |
union_all |
Union all dataset values using their native set-like merge semantics. |
concat_all
concat_all(dataset: Dataset[_SequenceModelT]) -> _SequenceModelT
Concatenate all dataset values using their native addition semantics.
decode_bytes
decode_bytes(data: Model[bytes], encoding: str | None = None) -> str
Decode each binary data file to text, auto-detecting encoding when none is supplied.
Source code in src/omnipy/components/raw/tasks.py
modify_all_lines
modify_all_lines(
data_file: Model[str], modify_all_lines_func: IsModifyAllLinesCallable, **kwargs: object
) -> str
Apply a callable to stripped lines and join the result with OS-specific newlines.
Source code in src/omnipy/components/raw/tasks.py
modify_datafile_content
modify_datafile_content(
data_file: Model[str], modify_content_func: IsModifyContentCallable, **kwargs: object
) -> str
Apply a callable to each full text data file.
Source code in src/omnipy/components/raw/tasks.py
modify_each_line
modify_each_line(
data_file: Model[str], modify_line_func: IsModifyEachLineCallable, **kwargs: object
) -> str
Apply a callable to each line and rebuild the text from returned lines.
Source code in src/omnipy/components/raw/tasks.py
union_all
union_all(dataset: Dataset[_UniqueModelT]) -> _UniqueModelT
Union all dataset values using their native set-like merge semantics.