Skip to content

simonrankine/cifter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cifter

Python3 ATOC CIF file parser

Usage

from cifter import parse_file

document = parse_file('ttisf760.mca')

for schedule_record in document.schedule_records:
    print("Basic record\n")
    print(schedule_record.basic_record)
    print("Origin record\n")
    print(schedule_record.origin_record)
    print("Intermediate records\n")
    for intermediate_record in schedule_record.intermediate_records:
        print(intermediate_record)
    print("Termination record\n")
    print(schedule_record.termination_record)

Note that the parse_file() method is a blocking CPU bound operation

About

Python3 ATOC CIF file parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages