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
Hashes for projectmanagersdk-110.0.3705.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eedfc64f11c8cdbd02300991b5d183f0c00381ba46a95a66b9f9635460baf30e |
|
MD5 | d87b129d1ef6f108a81e8d07e6bf4c20 |
|
BLAKE2b-256 | 332120cef8f9c5b32051123ab86d8fc0cc83fef1a90ea0429aa8fb6ec33e0c33 |
Hashes for projectmanagersdk-110.0.3705-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fdb222b2010dfd5c14ea294b3feef2def8ce6b5ebd5a6619c19ba1a48f730a6 |
|
MD5 | 88a5b5d32536b3fc8ff0123d9e4014a5 |
|
BLAKE2b-256 | 69899dd0cee5574bc32bdb977973eff601d621ee9ce3e4b17451c23f98727b79 |