Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Python API for interacting with the pipedrive.com API
Python
branch: master

Merge pull request #2 from jordanh/master

Fix for API requests which include id (e.g. activities)
latest commit 99c37b502b
@jscott1989 authored

README.md

python-pipedrive

Python library for interacting with the pipedrive.com API

This is being developed for my specific use so there's no guarantee I'll cover all of the aspects of the Pipedrive API. Feel free to add features though, I welcome pull requests.

All features should be supported though as this is just a lightweight wrapper around the API.

Usage:

Create a Pipedrive object, passing either the api key or your username and password as the parameters

from pipedrive import Pipedrive
pipedrive = Pipedrive(USERNAME, PASSSWORD)

or

from pipedrive import Pipedrive
pipedrive = Pipedrive(API_KEY)

The rest of the functions relate to the URL as specified in the API Docs.

The two things to note are the HTTP Method, and the path:

Examples:

  1. To list the organizations (method = GET, path = organizations)
    pipedrive.organizations({'method': 'GET'})
  1. Add a New Deal
    pipedrive.deals({
        'method': 'POST',
        'title': 'Big Sucker',
        'value': 1000000,
        'org_id': 2045,
        'status': 'open'
    })
  1. Delete an Activity
    pipedrive.activities({'method': 'DELETE', 'id': 6789})
Something went wrong with that request. Please try again.