Skip to content

osama-ata/PyP6Xer-dev

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyP6Xer Python Primavera P6 XER parser

Tests codecov Publish Python 🐍 package DOI

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-dev

The usage of the library is fairly simple and the import examples can be:

from xerparser_dev.reader import Reader

Here are some examples of reading and parsing xer files:

xer = Reader("<filename>") # this returns a reader object  

to read all projects in file as one xer file may have multiple projects stored into it:

for project in xer.projects:
  print(project)

XER Explorer Tool

PyP6Xer-dev now includes an XER Explorer tool that helps you quickly analyze the contents of XER files. The tool generates a concise report with key information about the file, including projects, calendars, WBS elements, and more.

Command-line Usage

After installing PyP6Xer-dev, you can use the explorer directly from the command line:

# Basic usage
xer-explorer path/to/your/file.xer

# Specify custom output file
xer-explorer path/to/your/file.xer -o custom_report.txt

# Include large collections (which are skipped by default)
xer-explorer path/to/your/file.xer --include-large

Programmatic Usage

You can also use the Explorer in your Python code:

from xerparser_dev.tools import explore_xer_file

# Generate a report with default settings
explore_xer_file("path/to/your/file.xer", "output_report.txt")

For more advanced usage and examples, see the documentation.

Packages

No packages published

Languages

  • Python 100.0%