Skip to content

Commit

Permalink
Add example.py for usage and testing. Still al ot of changes and docu…
Browse files Browse the repository at this point in the history
…mentation to do, but it definitely works in this form.
  • Loading branch information
jrhosk committed Oct 18, 2024
1 parent 4ae5f4b commit bb249c0
Show file tree
Hide file tree
Showing 2 changed files with 646 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/tablestream/example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from kaitaistruct import KaitaiStream
from metadata import Metadata

# Proof of concept example to print all the data manager name

with KaitaiStream(open("data/ea25_cal_small_before_fixed.split.ms/table.dat", "rb")) as _io:
m = Metadata(_io)
for manager in m.desc.table.columns.storage.managers:
print(manager.cxx_type.value)
Loading

0 comments on commit bb249c0

Please sign in to comment.