Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Aspose.Tasks for Python via .NET is a native library that enables the developers to add MS-Project files processing capabilities to their applications
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.
Aspose.Tasks for Python via .NET supports Microsoft Project versions 2003/2007/2010/2013/2016/2019/2021.
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.
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 |
Saving Project data to PDF Format | No | Yes |
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.
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.
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:
import aspose.tasks as tsk
# Open existing project
prj = tsk.Project("HelloProject.mpp")
# Save to PDF
prj.save("output.pdf", tsk.saving.SaveFileFormat.PDF)
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:
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)
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:
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
FAQs
Aspose.Tasks for Python via .NET is a native library that enables the developers to add MS-Project files processing capabilities to their applications
We found that aspose-tasks demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.