Package: aspose-tasks
Product Page|Documentation|Demos|Blog|API Reference|Search|Free Support|Temporary LicenseTry ourFree Online Appsdemonstrating some of the most popular MS-Project-related functionality.Aspose.Tasks for Python via .NETis 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 .NETallows 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 theLanding PagesofAspose.Tasks for Python via .NETfor a more detailed description of the features and possibilities of the library.General FeaturesAbility to create, read, edit and write to MPP/MPX/MPT/XERSupported export to multiple image formats including BMP, GIF, JPEG & PNG.Supported output to many other formats as XLSX, HTML, CSV, text etc.Export to PDFOracle Primavera and Project Server (Project online) support.Supported MS-Project versionsAspose.Tasks for Python via .NETsupports Microsoft Project versions 2003/2007/2010/2013/2016/2019/2021.Conversion FeaturesAspose.Tasks for Python via .NETlibrary 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 FeaturesManage 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 FormatsThe following table indicates the file formats thatAspose.Tasks for Python via .NETcan load and save.FormatDescriptionLoadSaveMPPMicrosoft Project/Microsoft Project Online formatYesYesMPTMicrosoft Project templateYesNoXMLMicrosoft Project XML FormatYesYesXERPrimavera XER FormatYesYesP6XMLPrimavera P6XML FormatYesYesMPXPrimavera MPXYesYesXLSXMicrosoft ExcelNoYesHTMLSimplified HTM and HTML FormatsNoYesTextText FormatNoYesTIFFSingle or Multi-Page TIFF ImageNoYesSVGScalable Vector GraphicsNoYesPNGPNG FormatNoYesJPEGJPEG FormatNoYesPDFSaving Project data to PDF FormatNoYesPlatform IndependenceAspose.Tasks for Python via .NETcan 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 StartedRunpip install aspose-tasksto fetch the package. If you already haveAspose.Tasks for Python via .NETand want to get the latest version, please runpip install --upgrade aspose-tasks.To learn more aboutAspose.Tasks for Python via .NETand explore the basic requirements and features of the library, check out the followingAspose.Tasks for Python via .NET Documentationpages for other use cases.Example of converting MPP project to PDFAspose.Tasks for Python via .NETis 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:Open existing project.Save to PDF.importaspose.tasksastsk# Open existing projectprj=tsk.Project("HelloProject.mpp")# Save to PDFprj.save("output.pdf",tsk.saving.SaveFileFormat.PDF)Example of converting project to imagesAspose.Tasks for Python via .NETsupports 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:Create an object of the Project class.Create ImageSaveOptions object with needed settings.Call the Project.save() method and pass options instance to it to convert to JPEG.importaspose.tasksastsk# load fileprj=tsk.Project("HelloProject.mpp")# create ImageSaveOptions with desired formatoptions=tsk.saving.ImageSaveOptions(tsk.saving.SaveFileFormat.JPEG)# configure output optionsoptions.horizontal_resolution=96.0options.vertical_resolution=96.0options.jpeg_quality=70# render data to image formatprj.save("output.jpg",options)Create Project file from scratch in PythonIn the next code snippet, we are creating a Project document from scratch containing few tasks. After installingAspose.Tasks for Python via .NETin your environment, you can execute below code sample to see how Aspose.Tasks API works.Below code snippet follows these steps:Instantiate a Project object.Add task to the project.Setup task attributes (start, duration etc.).Save created project.The following code snippet is a kind of simple program to exhibit howAspose.Tasks for Python via .NETAPI works with Project items:importaspose.tasksastskfromdatetimeimport*# Instantiate a Project objectprj=tsk.Project()# Add task to the projecttask1=prj.root_task.children.add("Task 1")# Setup task attributestask1.start=datetime(2023,1,15)task1.duration=prj.get_duration(1.0,tsk.TimeUnitType.DAY)# Add another tasktask2=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 projectprj.save("HelloProject.mpp")Product Page|Documentation|Demos|Blog|API Reference|Search|Free Support|Temporary License