Manipulate MS Project Files in Python via Cloud REST API
Aspose.Tasks for Cloud offers the ability to manipulate and convert Microsoft Project MPT, MPP, MPX & Oracle Primavera XER, XML, and PrimaveraP6XML files in Python. Aspose.Tasks Cloud SDK for Python wraps the REST API to make it easier for the developers to integrate MS Project Task Management features in their own cloud-based Python applications on Linux, MacOS, Windows or Android.
Feel free to explore the Developer's Guide & API Reference to know all about Aspose.Tasks Cloud API.
MS Project Processing Features
- Add project assignments or delete project assignments along with their references.
- Get the project's outline codes by index & get links to all project tasks.
- Import projects from Primavera DB formats or from databases with the specified connection string.
- Get UIDs of all projects contained in the file & fetch the required assignment with the project based on UID.
- Manage project tasks, resource data, calendars & Work Breakdown Structure (WBS).
- Group project resources and tasks according to specified group definitions.
- Perform risk analysis using Monte Carlo simulation and create a report.
- Create and set project document properties & fetch all or specific existing properties.
- Get a project's extended attributes, time-scaled data, or recurring info of a specific task.
- Reschedule project tasks, dates, and other settings.
- Calculate slacks & recalculate project completion or incompletion work.
- Fetch a project document in the desired format.
- Delete project task with its related references & rebuild the task tree.
- Convert project documents to other formats.
- Manipulate task data.
- Manage project's resources.
- Handle task links & task assignments.
- Work with project's extended attributes.
- Read Microsoft Project’s document properties such as start and finish date, tasks scheduling types and so on.
- Read Microsoft Project’s Calendars and Calendar Exceptions information.
Read & Write Project Data
Microsoft Project MPP, XML, MPT Primavera MPX
Save Project Data As
XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG
Enhancements in Version 26.9
- Added new VBA module management API methods:
GetVbaModule,DeleteVbaModule,ClearVba,PostVbaModule,PutVbaModule(both sync and async versions). - Added new model classes for VBA module operations:
VbaModuleResponse,VbaModuleType,CreateVbaModuleRequest,UpdateVbaModuleRequest. - Added new request classes for VBA module operations:
ClearVbaRequest,DeleteVbaModuleRequest,GetVbaModuleRequest,PostVbaModuleRequest,PutVbaModuleRequest. - Added
Typeproperty toVbaModulemodel to specify the type of the VBA module. - Added
PlannedDurationproperty toPrimaveraTaskPropertiesmodel for original or planned duration of a task.
Enhancements in Version 26.7
- Added ability to group project resources and tasks according to specified group definitions.
- Added new model classes for group management:
Group,GroupItem,GroupCriterion,GroupOn,GroupResponse,GroupItems,GroupItemsResponse,GroupedResourcesResponse,GroupedTasksResponse,ResourceGroupBucket,TaskGroupBucket,FontInfo. - Added API methods to get resource groups, task groups, grouped resources, and grouped tasks.
Enhancements in Version 26.6
- Added new property to TaskItem.
Enhancements in Version 25.11
- Enhanced reading data from Primavera-specific task's properties.
Enhancements in Version 25.8
- Added new ability to level tasks for the resources.
- Provided the ability to clear leveling delay that was previously added to the tasks during resource leveling.
Enhancements in Version 25.4
- Enhanced Task model.
- Enhanced TaskLink model.
- Enhanced ProjectRecalculationResult model.
Enhancements in Version 24.11
- Enhanced reading data from Primavera-specific task's properties.
Enhancements in Version 24.4
- Added new ability to get views information
- Possibility to modify table text styles for Gantt Chart views.
Enhancements in Version 22.12
- Added new ability to read Primavera-specific task's properties.
- Provided the ability to read more document properties.
Enhancements in Version 20.11
- Support for the batch creation of tasks (i.e. the ability to create multiple tasks in a single API call).
Enhancements in Version 20.8
- Ability to specify the non-default path for Project Server's PWA URL.
- Ability to modify timephasedData collection in assignments.
Enhancements in Version 20.6
- Possibility to render comments when saving as image, HTML or PDF.
- Option to use username and password to connect Project Online (Server) instead of auth token, incase you don't have it.
- Ability to add assignments to your project file along with specifying its cost.
- Quickly adding new tasks to project, when calculation mode is set to automatic.
- Ability to add project in Microsoft Project Server.
- Added support of reading shared resource assignments.
Get Started with Aspose.Tasks Cloud SDK for Python
Register an account at Aspose Cloud Dashboard to get you application information. Next, either directly use the source from this repository in your project or get the package from PyPi.
Install via PIP
pip install aspose-tasks-cloud
You may need to run pip command with root permission as sudo pip install aspose-tasks-cloud.
Then import the package as follows.
import asposetaskscloud
Install via Setuptools
python setup.py install --user
Alternatively, execute sudo python setup.py install to install the package for all users.
Then import the package as follows.
import asposetaskscloud
Convert MS Project MPP to PDF in Python
# Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
api_client = asposetaskscloud.ApiClient()
api_client.configuration.host = 'https://api.aspose.cloud'
api_client.configuration.api_key['api_key'] = 'MY_CLIENT_SECRET'
api_client.configuration.api_key['app_sid'] = 'MY_CLIENT_ID'
tasks_api = asposetaskscloud.TasksApi(api_client)
file_name = 'SomeSeriousPlan.mpp'
upload_request = asposetaskscloud.models.requests.UploadFileRequest(os.path.join(self.remote_test_folder, file_name), file_name)
upload_result = self.tasks_api.upload_file(upload_request)
request = asposetaskscloud.models.requests.GetReportPdfRequest(file_name, ReportType.MILESTONES)
result = tasks_api.get_report_pdf(request)
Aspose.Tasks Cloud SDKs in Popular Languages
| .NET | PHP | Python | Node.js | Go |
|---|---|---|---|---|
| GitHub | GitHub | GitHub | GitHub | GitHub |
| NuGet | Composer | PIP | NPM | Go.Dev |
Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial
Release files for aspose-tasks-cloud 26.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aspose_tasks_cloud-26.9.0.tar.gz | 196.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aspose_tasks_cloud-26.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:793.3 kB
Release files / aspose_tasks_cloud-26.9.0.tar.gz
| Download URL | aspose_tasks_cloud-26.9.0.tar.gz |
|---|---|
| Size | 196.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8f4a4e80b546628e4cea74e70a18ff69a0d9b8eb1a8cb62ce4ef111cd2ca998
|
|
BLAKE2b-256 checksum How to use checksums |
63185fa0892724cc3c22fb037b57ede3111b570ec631514fd2b66579250fd583
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Release files / aspose_tasks_cloud-26.9.0-py3-none-any.whl
| Download URL | aspose_tasks_cloud-26.9.0-py3-none-any.whl |
|---|---|
| Size | 597.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0a7c1c401141883fea1ccb15a19fbde6a67f35cede0a9fbb89b78225e3c791e
|
|
BLAKE2b-256 checksum How to use checksums |
6171d33e217dac1e22ec9faf855b0f1b467db45bf4609153126d1745ecabdde0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|