1. Products
  2.   Project Management
  3.   Python
  4.   Aspose.Tasks for Python via .NET

Aspose.Tasks for Python via .NET

 
 

Create, Modify & Convert MS Project Files via Python API

Advanced Ptyhon API That Allows Software Developers to Generate, Read, Manipulate, or Convert Microsoft Project Files in Various Formats like MPP, XML, HTML & more using Python via .NET.

As technology continues to advance, project management tools have become indispensable for businesses across various industries. Among the plethora of options available, Aspose.Tasks stands out as a powerful solution for managing tasks, resources, and schedules effectively. Aspose.Tasks for Python via .NET is a robust library that provides software developers with the tools they need to work with Microsoft Project files seamlessly. Whether you're creating, reading, manipulating, or converting project files, this library offers a comprehensive set of features to streamline your workflow.

One of the key advantages of Aspose.Tasks for Python via .NET is its compatibility with Python via .NET. By leveraging the .NET framework, developers can harness the full potential of Aspose.Tasks within their Python applications. This interoperability opens up a world of possibilities, allowing Python developers to integrate powerful project management capabilities into their software projects with ease. It supports cross-platform development, allowing developers to create applications that run seamlessly on Windows, macOS, and Linux. The integration with Python via .NET streamlines the development process, saving valuable time for developers.

With Aspose.Tasks for Python via .NET, software developers can read and write Microsoft Project files in various formats, including MPP, XML, and HTML inside their own applications. It offers extensive functionality for manipulating project data. Developers can programmatically add, remove, update, and reorder tasks, as well as modify task properties such as duration, start date, and priority. This level of control enables developers to tailor project management solutions to meet the specific needs of their organizations. With its rich feature set, interoperability, and extensive documentation, the library is a valuable tool for any organization looking to streamline their project management processes.

Previous Next

Getting Started with Aspose.Tasks for Python via .NET

The recommend way to install Aspose.Tasks for Python via .NET is via Pypi. Please use the following commands for a smooth installation.

Install Aspose.Tasks for Python via .NET via Pypi

pip install aspose-tasks
You can download the directly from Aspose.Tasks Release page

Generate Project Files via Python API

Aspose.Tasks for Python via .NET makes it easy for software developers to create Project documents from scratch using Python API. Moreover, the library allows software developers to effortlessly read and write project data in various formats, including MPP, MPT, MPX, XML, XER, P6 XML, P6, CSV and many more. This flexibility allows for easy integration with other systems and tools used in the project management ecosystem. The following code example shows how software developers can use the API to works with Project items inside Python applications.

How to Create & Work with Project Items using Python API?

 import aspose.tasks as tsk
from datetime import *

# Instantiate a Project object
prj = tsk.Project()
# Add task to the project
task1 = prj.root_task.children.add("Task 1")
# Setup task attributes
task1.start = datetime(2023, 1, 15)
task1.duration = prj.get_duration(1.0, tsk.TimeUnitType.DAY)
# Add another task
task2 = prj.root_task.children.add("Task 2")
task2.start = datetime(2023, 1, 16)
task2.duration = prj.get_duration(2.0, tsk.TimeUnitType.DAY)
# Save created project
prj.save("HelloProject.mpp")

Convert Project Files to Other Formats via Python

Aspose.Tasks for Python via .NET has provided complete functionality for converting MS project files data to different supported file formats inside Python Applications. The API supports conversion to popular file formats like Excel, PDF, CSV, HTML and Image formats including TIFF, PNG, JPEG and SVG. The following example demonstrates how software developers can convert Microsoft Project file to image file formats inside Python applications.

How to Convert MS Project MPP File to JPEG Format via Python API?

 import aspose.tasks as tsk

# load file
prj = tsk.Project("HelloProject.mpp")
# create ImageSaveOptions with desired format
options = tsk.saving.ImageSaveOptions(tsk.saving.SaveFileFormat.JPEG)
# configure output options
options.horizontal_resolution = 96.0
options.vertical_resolution = 96.0
options.jpeg_quality = 70
# render data to image format
prj.save("output.jpg", options)

Project Files Conversion to PDF via Python

Aspose.Tasks for Python via .NET gives software developers the power to convert any existing Project to PDF file format with just a couple of lines of code. To convert an existing first you need to open and load the existing project file and after that using the save method developer can achieve the conversion to their desired file format. The following example demonstrates how easily software developers can export an existing project file to PDF file format using Python code.

How to Convert MPP Project File to PDF using Python API?

import aspose.tasks as tsk

# Open existing project
prj = tsk.Project("HelloProject.mpp")
# Save to PDF
prj.save("output.pdf", tsk.saving.SaveFileFormat.PDF)

Handling Calendars & Advanced Reporting

Calendars play a crucial role in project management. Aspose.Tasks for Python via .NET enables software developers to work with project calendars, defining working hours, non-working days, and exceptions. This level of control ensures accurate scheduling and resource allocation. Moreover, the library facilitates the generation of insightful reports and analysis through its advanced reporting features. Developers can extract meaningful data from project files and present it in a visually appealing manner, aiding decision-making processes.