src.utils.table_manager package
Submodules
src.utils.table_manager.csv_table_manager module
src.utils.table_manager.excel_table_manager module
src.utils.table_manager.i_table_manager module
src.utils.table_manager.sample_sheet_builder module
A builder class for constructing a sample sheet text from a container of sections.
This module provides a class SampleSheetBuilder for assembling a sample sheet from various sections.
It handles formatting and joining sections into a coherent text representation.
The class is designed to be used with SampleSheetContainer objects, which hold the individual sections.
- class src.utils.table_manager.sample_sheet_builder.SampleSheetBuilder(container: SampleSheetContainer, separator: str = ',')[source]
Bases:
objectA builder class for constructing a sample sheet text from a container of sections.
- container
The container holding the sections to be included in the sample sheet.
- Type:
- build() None[source]
Builds the sample sheet lines from the sections in the container. Populates the self.lines list with the constructed lines.
src.utils.table_manager.sample_sheet_container module
A module for representing and managing sample sheet data.
This module defines data structures for organizing sample sheet information, allowing for flexible storage of various data types within different sections. It is designed to handle both simple key-value pairs and more complex structures within each section of the sample sheet.
- class src.utils.table_manager.sample_sheet_container.Section(name: str, data: dict[str, str] | list[dict | str])[source]
Bases:
objectRepresents a section within the sample sheet.
- data
The data associated with the section, which can be a dictionary of string key-value pairs or a list containing dictionaries or strings.
- class src.utils.table_manager.sample_sheet_container.SampleSheetContainer(sections: list[~src.utils.table_manager.sample_sheet_container.Section] = <factory>)[source]
Bases:
objectContainer for managing multiple sections of a sample sheet.