From 0ad178c487cfe49796b8b4833671847f29d3f763 Mon Sep 17 00:00:00 2001 From: Joshua Lucas Date: Thu, 5 Nov 2026 21:01:00 -0600 Subject: [PATCH] Start writing expander module. --- src/AuDaGe/expander.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/AuDaGe/expander.py diff --git a/src/AuDaGe/expander.py b/src/AuDaGe/expander.py new file mode 100644 index 0000000..988c70a --- /dev/null +++ b/src/AuDaGe/expander.py @@ -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()