This is a preliminary API until 2020.Apr and may be improved based on user feedback. It is currently available in C++ and Python.
OEReadDesignUnitFromBytes(du, input) -> bytes
Reads the contents of the bytes input into an OEDesignUnit
Returns True if an OEDesignUnit was read successfully,
and False otherwise.