Skip to main content

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

Metadata

Release files for aspose-tasks 26.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for aspose-tasks 26.10.0
File
aspose_tasks-26.10.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
aspose_tasks-26.10.0-py3-none-win32.whl Python 3 none Windows x86-32 Details
aspose_tasks-26.10.0-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details
aspose_tasks-26.10.0-py3-none-macosx_10_14_x86_64.whl Python 3 none macOS 10.14+ x86-64 Details

Total release size: 228.5 MB

Release files / aspose_tasks-26.10.0-py3-none-win_amd64.whl

Download URL aspose_tasks-26.10.0-py3-none-win_amd64.whl
Size 51.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
1c8da4795c430ab247e24a751268b0573e85f00dbd5c080f21da38a5929f723d
BLAKE2b-256 checksum
How to use checksums
ddb9668a7b73bee038ecf22123b6ffe0cc1ebcf437aad9f02d4d7105f4689c96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / aspose_tasks-26.10.0-py3-none-win32.whl

Download URL aspose_tasks-26.10.0-py3-none-win32.whl
Size 44.0 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
46e66d91ab45e5fcf0cd4243c054a91881d9e231450c00a888af2e7bec42922b
BLAKE2b-256 checksum
How to use checksums
67842bf81874cf0bea09ac2043773b5bbd565c6cf889a53c249bb34f30f2a335
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / aspose_tasks-26.10.0-py3-none-manylinux1_x86_64.whl

Download URL aspose_tasks-26.10.0-py3-none-manylinux1_x86_64.whl
Size 71.7 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
6dacd9a4188447c36753ab7955834a756b5691fa9580dac9a517325b7a2d5a2f
BLAKE2b-256 checksum
How to use checksums
a0e9f0a0ae62446d8929aa9f842c0e064cf406abeed5a870ef7679512b6ef887
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / aspose_tasks-26.10.0-py3-none-macosx_10_14_x86_64.whl

Download URL aspose_tasks-26.10.0-py3-none-macosx_10_14_x86_64.whl
Size 61.4 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
5fcd59b250c433fbbf3e3761eccafb2aa5a57677deb37917c9cec8ee02bab6d2
BLAKE2b-256 checksum
How to use checksums
aab2ec079a0c68544b0974f53887a8dd9434236795df8f89c6b01fb4c1333592
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Security for aspose-tasks 26.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

26.10.0 This release

4 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page