trying to figure out best project structure

This commit is contained in:
Jonas Linter
2025-09-25 09:36:07 +02:00
parent d41084cd1b
commit 9ea09ffa3f
12 changed files with 495 additions and 47 deletions

View File

@@ -0,0 +1,22 @@
from generated.alpinebits import OtaPingRq, OtaPingRs
def main():
# test parsing a ping request sample
path = "../../AlpineBits-HotelData-2024-10/files/samples/Handshake/Handshake-OTA_PingRQ.xml"
with open(
path, "r", encoding="utf-8") as f:
xml = f.read()
# Parse the XML into the request object
request = OtaPingRq.from_xml(xml)
print("Parsed OTA_PingRQ:", request)
if __name__ == "__main__":
main()