Skip to main content

An actively maintained fork of PyP6Xer: A Python parser for Primavera XER files.

Project description

Alt-Ctrl-Proj Python Primavera P6 XER parser

Tests codecov Publish Python 🐍 package DOI

Alt-Ctrl-Proj is an actively maintained fork of PyP6Xer, an open-source project for parsing Primavera XER files in Python. The project is a 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 Alt-Ctrl-Proj

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

from xer_parser.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

Alt-Ctrl-Proj 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 Alt-Ctrl-Proj, you can use the XER Explorer tool directly from the command line using the provided entry point:

# 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

Note: The xer-explorer command is available after installing the package via pip. The script in scripts/xer_explorer.py is for development or manual use only.

Programmatic Usage

You can also use the Explorer in your Python code:

from xer_parser.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alt_ctrl_proj-0.0.3.tar.gz (60.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alt_ctrl_proj-0.0.3-py3-none-any.whl (85.1 kB view details)

Uploaded Python 3

File details

Details for the file alt_ctrl_proj-0.0.3.tar.gz.

File metadata

  • Download URL: alt_ctrl_proj-0.0.3.tar.gz
  • Upload date:
  • Size: 60.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for alt_ctrl_proj-0.0.3.tar.gz
Algorithm Hash digest
SHA256 361642e93d45c381c5d75c0897a8bfcc3cef4eb5be19d22e9ea7ff752ace94fd
MD5 cd486af9591c5eef098123c7dd78b5ad
BLAKE2b-256 9cb6652514ef85c6e3e2443956fb9e12eaa12f2ae1f1db78c6d740b4bbb4fa1c

See more details on using hashes here.

File details

Details for the file alt_ctrl_proj-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: alt_ctrl_proj-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 85.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for alt_ctrl_proj-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7b423ce764d3e64e8a49a5da6f5e1c41d61531ab6dc45fa802f99312f9845210
MD5 a2d59bc611e9ca27ed67f363139acbd9
BLAKE2b-256 277a4a2ea6078e1b7bb10443ba284e83b77ab9c4829465b9bb34d672f4f8d10b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page