Convert MPP to MPX in Python

Microsoft Project uses the MPP format to store a variety of project-related information, such as tasks, resources, assignments, timelines, and budgets. Whereas MPX is an older file format designed for Microsoft Project. It enables the interchange of project data between Microsoft Project and other software applications that support the MPX format. In this blog post, we will learn how to convert MPP to MPX in Python.

This article covers the following topics:

  1. Python API to convert MPP to MPX
  2. Convert MPP to MPX
  3. Convert MPP to MPX online
  4. Free learning resources

Python API to Convert MPP to MPX

We will use Aspose.Tasks for Python API to convert MPP files into MPX format. Aspose.Tasks for Python empowers developers to seamlessly integrate the creation, reading, manipulation, and exportation of Microsoft Project data within their Python applications. It offers a comprehensive set of classes and methods that facilitate diverse interactions with project data. This encompasses the ability to generate new projects, incorporate tasks and resources, modify project schedules, perform conversions, and generate reports.

Please either download the package or install the API from PyPI using the following pip command in the console:

pip install aspose-tasks

Convert MPP to MPX using Python

We can easily convert MPP files into MPX format by following the steps given below:

  • Load the MPP file using the Project class.
  • Call the save() method to save it as MPX. It takes the output MPX file path and the SaveFileFormat.MPX as arguments.

The following sample code shows how to convert MPP to MPX in Python.

Aspose.Tasks Library License

Please get a free temporary license to try Aspose.Tasks for Python without evaluation limitations. A free evaluation version can be used to test the features and capabilities of the library.

Convert MPP to MPX Online Free

You may also convert MPP files into MPX format online for free by using this MPP to MPX converter web app. This web app was developed using the above API.

MPP to MPX Converter – Learning Resources

Besides converting MPP to MPX, learn more about generating, converting, and manipulating MPP files without using Microsoft Project, and explore various other features of the library using the resources below:

Conclusion

In this article, we have learned how to export MS Project data from MPP format to MPX programmatically in Python. By following the steps outlined, you can easily develop your own MPP to MPX converter application. Additionally, we have also seen how to convert MPP to MPX online. In case of any ambiguity, please feel free to contact us on our free support forum.

See Also