Start writing expander module.

This commit is contained in:
2026-11-05 21:01:00 -06:00
parent 78611c5ee2
commit 0ad178c487

32
src/AuDaGe/expander.py Normal file
View File

@@ -0,0 +1,32 @@
"""
AuDaGe Expander module
name: expander.py
by: Josh Lucas
date: 2026-11-03
desc: AuDaGe module for expanding UDT instances using their definitions.
"""
from AuDaGe.frame import AuDaGeColumns, AuDaGeFrame, Frame
class DefinitionFrame(
Frame,
mandatory_columns=(
AuDaGeColumns.Mandatory.values() + AuDaGeColumns.Optional.values()
),
):
"""Dataframe for UDT definitions."""
class Expander:
"""Class for handling dataframe pairs with one containing UDT instances and
other tags and the other containing UDT definitions.
"""
def __init__(self, definitions: AuDaGeFrame):
self.definitions = definitions
def expand(self, frame: Frame) -> AuDaGeFrame:
return AuDaGeFrame()