Fork from original https://github.com/HassanEmam/PyP6Xer
This package is a fork from original maintained with fixes and changes to handle cases and optimizations not comonly found in standard usage
PyXer is an open source project to parse Primavera xer files in python. The project is work in progress and open for community contributions.
In order to install a copy in your system you can use pip package manager as follows:
pip install PyP6Xer-patch
The usage of the library is fairly simple and the import examples can be:
from xerparser.reader import Reader
Here are some examples of reading and parsing xer files:
xer = Reader("<filename>") # this returns a reader object
to reade all projects in file as one xer file may have multiple projects stored into it:
for project in xer.projects:
print(project)