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.

What is Aspose.Tasks for Python via .NET?

With technology rapidly advancing, project management tools have become essential for businesses in different fields. Among the many choices out there, Aspose.Tasks shines as a top-notch tool for handling tasks, resources, and schedules efficiently. Aspose.Tasks for Python via .NET is a strong library that equips software developers with everything necessary to seamlessly handle Microsoft Project files. When you’re working with project files, this library has everything you need to make your tasks easier. It has a cool feature – it’s compatible with Python via .NET. This means that developers can make the most out of Aspose.Tasks in their Python projects by using the .NET framework. This compatibility brings a lot of opportunities, enabling Python developers to incorporate robust project features into their software projects with ease.

By using Aspose.Tasks for Python through .NET, software developers have the ability to access and modify Microsoft Project files in different formats like MPP, XML, and HTML within their own software. This tool supports development across different platforms, enabling developers to build applications that work smoothly on Windows, macOS, and Linux. The connection between Python and .NET simplifies the development process, helping developers save precious time. The tool provides a wide range of features for managing project data. You can use it to easily make changes to tasks in your projects, like adding, removing, updating, or reordering them. You can also adjust task details such as duration, start date, and priority. This level of flexibility allows you to customize project management solutions to suit your organization’s unique requirements. With its many features, compatibility, and detailed guides, this tool is a valuable asset for any organization aiming to simplify 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.