Files
pycmx/pycmx/parse_cmx_events.py
2022-11-16 19:00:17 -08:00

22 lines
463 B
Python

# pycmx
# (c) 2018 Jamie Hardt
from collections import namedtuple
from .parse_cmx_statements import (parse_cmx3600_statements, StmtEvent,StmtFCM )
from .edit_list import EditList
def parse_cmx3600(f):
"""
Parse a CMX 3600 EDL.
Args:
f : a file-like object, anything that's readlines-able.
Returns:
An :class:`pycmx.edit_list.EditList`.
"""
statements = parse_cmx3600_statements(f)
return EditList(statements)