Skip to main content

Aspose.Tasks for Python via .NET is a native library that enables the developers to add MS-Project files processing capabilities to their applications

Project description

Product Page | Documentation | Demos | Blog | API Reference | Search | Free Support | Temporary License

Try our Free Online Apps demonstrating some of the most popular MS-Project-related functionality.

Aspose.Tasks for Python via .NET is a native library that enables the developers to add MS-Project files processing capabilities to their applications. It can be used to create, read, convert and manipulate MS-Project files without the use of Microsoft Project itself. Aspose.Tasks for Python via .NET allows to perform a range of document processing tasks such as calculations, get and set tasks/recources/calendars information, views manipulation, management of attachments, custom font handling and much more. Check out the Landing Pages of Aspose.Tasks for Python via .NET for a more detailed description of the features and possibilities of the library.

General Features

  • Ability to create, read, edit and write to MPP/MPX/MPT/XER
  • Supported export to multiple image formats including BMP, GIF, JPEG & PNG.
  • Supported output to many other formats as XLSX, HTML, CSV, text etc.
  • Export to PDF
  • Oracle Primavera and Project Server (Project online) support.

Supported MS-Project versions

Aspose.Tasks for Python via .NET supports Microsoft Project versions 2003/2007/2010/2013/2016/2019/2021.

Conversion Features

Aspose.Tasks for Python via .NET library allows you to successfully, quickly and easily convert your project documents to the most popular formats and vice versa.

  • Convert MPP to Images formats (TIFF, PNG, JPEG, SVG, etc.).
  • Convert MPP to Excel.
  • Convert MPP to HTML format and vice versa.
  • Convert MPP to CSV and plain text.
  • Convert MPP to PDF.

Package Features

  • Manage tasks, resources, assignments, task links and calendars.
  • Manage custom fields, outline codes.
  • Working with different project views, custom timecaling and custom text styles.
  • Customize styles of Gantt Chart view.

Supported File Formats

The following table indicates the file formats that Aspose.Tasks for Python via .NET can load and save.

Format Description Load Save
MPP Microsoft Project/Microsoft Project Online format Yes Yes
MPT Microsoft Project template Yes No
XML Microsoft Project XML Format Yes Yes
XER Primavera XER Format Yes Yes
P6XML Primavera P6XML Format Yes Yes
MPX Primavera MPX Yes Yes
XLSX Microsoft Excel No Yes
HTML Simplified HTM and HTML Formats No Yes
Text Text Format No Yes
TIFF Single or Multi-Page TIFF Image No Yes
SVG Scalable Vector Graphics No Yes
PNG PNG Format No Yes
JPEG JPEG Format No Yes
PDF Saving Project data to PDF Format No Yes

Platform Independence

Aspose.Tasks for Python via .NET can be used to develop 32-bit and 64-bit Python applications for different operating systems (such as Windows and Linux) where Python 3.5 or later is installed.

Get Started

Run pip install aspose-tasks to fetch the package. If you already have Aspose.Tasks for Python via .NET and want to get the latest version, please run pip install --upgrade aspose-tasks.

To learn more about Aspose.Tasks for Python via .NET and explore the basic requirements and features of the library, check out the following Aspose.Tasks for Python via .NET Documentation pages for other use cases.

Example of converting MPP project to PDF

Aspose.Tasks for Python via .NET is a Project manipulation API that lets you convert any existing project to PDF document. The process of converting to PDF can be flexibly customized.

Below code snippet follows these steps:

  1. Open existing project.
  2. Save to PDF.
import aspose.tasks as tsk

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

Example of converting project to images

Aspose.Tasks for Python via .NET supports the feature to convert projects to different image formats. To accomplish this, the ImageSaveOptions class has been introduced. Instantiate an object of ImageSaveOptions and pass it as a second argument to the Project.save(..) method.

Below code snippet follows these steps:

  1. Create an object of the Project class.
  2. Create ImageSaveOptions object with needed settings.
  3. Call the Project.save() method and pass options instance to it to convert to JPEG.
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)

Create Project file from scratch in Python

In the next code snippet, we are creating a Project document from scratch containing few tasks. After installing Aspose.Tasks for Python via .NET in your environment, you can execute below code sample to see how Aspose.Tasks API works.

Below code snippet follows these steps:

  1. Instantiate a Project object.
  2. Add task to the project.
  3. Setup task attributes (start, duration etc.).
  4. Save created project.

The following code snippet is a kind of simple program to exhibit how Aspose.Tasks for Python via .NET API works with Project items:

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")

Product Page | Documentation | Demos | Blog | API Reference | Search | Free Support | Temporary License

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

aspose_tasks-24.7.0-py3-none-win_amd64.whl (47.6 MB view details)

Uploaded Python 3Windows x86-64

aspose_tasks-24.7.0-py3-none-win32.whl (41.3 MB view details)

Uploaded Python 3Windows x86

aspose_tasks-24.7.0-py3-none-manylinux1_x86_64.whl (63.8 MB view details)

Uploaded Python 3

aspose_tasks-24.7.0-py3-none-macosx_10_14_x86_64.whl (54.7 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

File details

Details for the file aspose_tasks-24.7.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for aspose_tasks-24.7.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 24f0d3665692bd3120d9c3ea8877b85810cf5210103171f5a09f957258cf7dee
MD5 1b1496b6fac7f4b7e5b34a3d1c834f5c
BLAKE2b-256 b8a82244a3ef328e692c25dc6c225a03f0c2dc377ae00e93d51daa36b276158c

See more details on using hashes here.

File details

Details for the file aspose_tasks-24.7.0-py3-none-win32.whl.

File metadata

  • Download URL: aspose_tasks-24.7.0-py3-none-win32.whl
  • Upload date:
  • Size: 41.3 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for aspose_tasks-24.7.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 b726d79b81291d8cffafd584836d338bba997ab1e575eebd588e8d31707ffb3e
MD5 0a84fc59628317673adddc4a91d96ead
BLAKE2b-256 d9155e12a4b5fe6f2f0ee1e019c2dec41934df3ee861a15253e29d7f7f6c20e1

See more details on using hashes here.

File details

Details for the file aspose_tasks-24.7.0-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for aspose_tasks-24.7.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 588f396a9edcd50fb2543f8a2ea319aa74c804ebd7a8ca3c81a6d11a89f9daae
MD5 7f277b500c490e9e9b1c8eeac6c54ccc
BLAKE2b-256 499982751a84f541f1aaa0f7d4baebf7f600e088eb82ba6e748253721074c40b

See more details on using hashes here.

File details

Details for the file aspose_tasks-24.7.0-py3-none-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for aspose_tasks-24.7.0-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b9f5eec6ad3068c6fb9925e1dcffda5f1849b2a03a14faaeb5071c19585fff07
MD5 a7e043c8c28c8ffe0ef23abca8aef6fa
BLAKE2b-256 a4e510fbba90321f4b0aa7ab6b5db8730995ccc722e90897fa478743ef2f4edd

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