from calcephpy import *

peph = CalcephBin.open("example1.dat")
n = peph.getorientrecordcount()
for j in range(1, n+1):
    itarget, firsttime, lasttime, iframe, iseg = peph.getorientrecordindex2(j)
    print(itarget, firsttime, lasttime, iframe, iseg)

peph.close()