Software development kit for the ProjectManager.com API for Python
Project description
ProjectManager.com SDK API v4
This software development kit contains all API definitions for the ProjectManager.com REST API v4 for Python.
Why use the SDK?
The ProjectManager API v4 is available as a REST definition in OpenAPI format. You can read the documentation online at developer.projectmanager.com.
Using this SDK
Here's how to add this SDK to create a project.
pip install ProjectManagerSdk
To create an API client for ProjectManager, you must specify:
- Your API key, and
- Your environment URL.
For the ProjectManager production environment, the environment URL is https://api.projectmanager.com
.
To obtain a ProjectManager.com API key:
- Log on to ProjectManager.com
- Click your name in the bottom left hand corner
- Select Account, then API
- Follow the instructions on the page to create a new API key
This example code demonstrates how to retrieve your API key from an environment variable and use it in Python:
import ProjectManagerSdk
import os
# Retrieve API key and create a client
apiKey = os.environ.get('PM_API_KEY')
client = ProjectManagerSdk.ProjectManagerClient('production', 'EXAMPLE_JUPYTER_NOTEBOOK')
client.with_api_key(apiKey)
# Test connectivity to the server
status_results = client.me.retrieve_me()
if not status_results.success or not status_results.data:
print("Your API key is not valid.")
print("Please set the environment variable PM_API_KEY and PM_ENV and try again.")
exit()
print(f"Logged in as {status_results.data.fullName} ({status_results.data.emailAddress})")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file projectmanagersdk-121.0.4887.tar.gz
.
File metadata
- Download URL: projectmanagersdk-121.0.4887.tar.gz
- Upload date:
- Size: 61.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5b279511f8aebbe755ef4cff4afd0498bee791ec069ced527e581c45122725e |
|
MD5 | ebce263112804316bfe6800f49f3b82b |
|
BLAKE2b-256 | 13566e400be2b7fa00e9b9995547f99a55a12f8cabccd0e6cb482b55d251640c |
File details
Details for the file ProjectManagerSdk-121.0.4887-py3-none-any.whl
.
File metadata
- Download URL: ProjectManagerSdk-121.0.4887-py3-none-any.whl
- Upload date:
- Size: 168.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 887a4a4a1ff07102dc95b716682f5db6218e5baa55ef369fa6a6224b37d80a43 |
|
MD5 | 1ae603fe165d995828bc4419b5544245 |
|
BLAKE2b-256 | e7d50a8d8fe9c1e4864cf120bed37c83226bf2fdd34ec4d643d54822c19c8b65 |