Primavera EPPM Web Services programming
Primavera allows to use REST API.
Plans to implement:
CRUD operations:
- Read objects
- Create objects
- Update objects
- Delete object
Import/Export
- Activities
- Activity Codes
- Activity Code Assignments
- Resources
- Resource Assignments
- WBS
- Relationships
- Risks
- Role
System requirements:
- Primavera EPPM v22
- Access to P6WebServices
RestAPI documentation: REST API Documentation
How to use:
- Create Python virtual enviroment
python -m venv venv
- Install the package
pip install Primavera-REST-Api
- Example code
from Primavera_REST_Api import Primavera
EPPM_LOGIN = "testuser"
EPPM_PASSWORD = "testuser1903"
EPPM_DATABASE = "EPPM"
EPPM_PREFIX = "http://10.1.10.203:8206/p6ws/restapi"
PROJECT_SHORT_CODE = "testproj"
EXPORT_TABLES_TO_CSV = True # Export Tables to CSV file
app = Primavera(rest_api_prefix=EPPM_PREFIX,
database_name=EPPM_DATABASE,
login=EPPM_LOGIN,
password=EPPM_PASSWORD)
app.select_project(projectId=PROJECT_SHORT_CODE)
if EXPORT_TABLES_TO_CSV:
# Export tables to CSV files
directory = 'csv'
app.project.export_to_CSV(directory=directory, fields=['Id', 'Name'])
app.wbs.export_to_CSV(fields=['ParentObjectId', 'ObjectId', 'Name', 'Code'], directory=directory)
app.activity.export_to_CSV(fields=['ObjectId', 'Id', 'Name', 'PlannedDuration',
'StartDate', 'FinishDate', 'ActualDuration'], directory=directory)
app.resource.export_to_CSV(fields=['ObjectId', 'Id', 'Name'], directory=directory)
app.resourceAssignment.export_to_CSV(
fields=['ActivityObjectId', 'ResourceObjectId', 'PlannedUnits', 'ActivityId', 'ResourceId'], directory=directory)
app.resourceRole.export_to_CSV(directory=directory)
app.role.export_to_CSV(directory=directory)
# app.activity.import_CSV_to_EPPM(directory='csv', filename='import - activity.csv', delimiter=',')
Metadata
Release files for Primavera-REST-Api 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| Primavera_REST_Api-0.1.0.tar.gz | 5.8 kB | Without provenance | Details for Primavera_REST_Api-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Primavera_REST_Api-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for Primavera_REST_Api-0.1.0-py3-none-any.whl |
Total release size: 12.9 kB
Release files / Primavera_REST_Api-0.1.0.tar.gz
| Download URL | Primavera_REST_Api-0.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a1eb4f7074afc1403e22556f306de269b2eef8b1d2a46ff0fab35560976d001
|
|
BLAKE2b-256 checksum How to use checksums |
86be2f7c186989be6a576d325c6cf4647a990d6a4cea102fcb06baff13a9b9b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / Primavera_REST_Api-0.1.0-py3-none-any.whl
| Download URL | Primavera_REST_Api-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5410c89bea60ac1979d156a252ecaba4d83fa835c1a64e2ce9b5e9b8a7249b2e
|
|
BLAKE2b-256 checksum How to use checksums |
dd14f6998270993c59f2b5e0ed31652c0bf856b90f5d3262dbb4017bc8e57eba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for Primavera-REST-Api 0.1.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.