Skip to main content

Software development kit for the ProjectManager.com API for Python

Project description

PyPI - Version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

projectmanagersdk-122.0.214.tar.gz (61.9 kB view details)

Uploaded Source

Built Distribution

ProjectManagerSdk-122.0.214-py3-none-any.whl (169.0 kB view details)

Uploaded Python 3

File details

Details for the file projectmanagersdk-122.0.214.tar.gz.

File metadata

  • Download URL: projectmanagersdk-122.0.214.tar.gz
  • Upload date:
  • Size: 61.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for projectmanagersdk-122.0.214.tar.gz
Algorithm Hash digest
SHA256 11a14549604ed964ed7302c1026fa6767263dcfc3d2cfce390434cf62dd8d814
MD5 b64b366a36f5401af7c714aadfc1cbf4
BLAKE2b-256 b42c78170516d7240bc0d0f0f3b6d02f7fc1c8085bb4bbdfbf949aa9e67f0e64

See more details on using hashes here.

File details

Details for the file ProjectManagerSdk-122.0.214-py3-none-any.whl.

File metadata

File hashes

Hashes for ProjectManagerSdk-122.0.214-py3-none-any.whl
Algorithm Hash digest
SHA256 3722cbe394b2b25a61ee2919d15513fdedbf81d5fcf9e1b3f16701941f154679
MD5 978cc1824be9709405186f3d15408254
BLAKE2b-256 acaa9bde050238851f554f7ce3bf6d5ecb2bd30dd9397bbc93eace0421afe570

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page