Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pipedrivepy

Pipedrive API generic client for Python

Code style: black Linter: pylint

Requirements

pipedrivepy tested under Python 3.6+. Synchoronous version requires requests package. Asynchoronous version requires aiohttp package.

Installation

You can install pipedrivepy with:

  • pip install pipedrivepy[sync] for synchoronous version;
  • pip install pipedrivepy[async] for asynchoronous version;

Usage

Pipedrive API Reference

pipedrivepy uses chain technique to build endpoint path.

For example, client.deals(100).followers makes path to /deals/100/followers.

To send request need call one of control methods:

  • get(**query) to GET request;
  • add(**payload) to POST request;
  • update(**payload) to PUT request;
  • delete(**payload) to DELETE request;

You must first check API method signature to build right path and call right method.

Example usage of synchoronous client

"""Add a deal
https://developers.pipedrive.com/docs/api/v1/#!/Deals/post_deals"""

from pipedrive import PipedriveError
from pipedrive.sio import Client

client = Client('your-company-domain', 'your-token')

def add_deal(title):
    try:
        data = client.deals.add(title='Test deal')
    except PipedriveError as error:
        print(error.code)  # Show HTTP code
        raise ValueError(str(error))

    print(data['data']['id'])

Example usage of asynchoronous client

"""Merging two deals
https://developers.pipedrive.com/docs/api/v1/#!/Deals/put_deals_id_merge"""

from pipedrive import PipedriveError
from pipedrive.aio import Client

client = Client('your-company-domain', 'your-token')

async def merge_deals(deal_id, merge_with_id):
    try:
        data = await client.deals(42).merge.update(merge_with_id=24)
    except PipedriveError as error:
        print(error.code)  # Show HTTP code
        raise ValueError(str(error))

    print(data['data']['id'])

License

MIT

Metadata

Release files for pipedrivepy 1.0.0b0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pipedrivepy 1.0.0b0
File Size Uploaded Provenance Actions
pipedrivepy-1.0.0b0.tar.gz 3.4 kB Without provenance Details for pipedrivepy-1.0.0b0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pipedrivepy 1.0.0b0
File Interpreter ABI Platform Actions
pipedrivepy-1.0.0b0-py3-none-any.whl Python 3 none any Details for pipedrivepy-1.0.0b0-py3-none-any.whl

Total release size: 8.9 kB

Release files / pipedrivepy-1.0.0b0.tar.gz

Download URL pipedrivepy-1.0.0b0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
81d482f2c6072b0bfcf70c2b98e078c015e3a5552992690249a8eb8950e04e54
BLAKE2b-256 checksum
How to use checksums
c4bfc0e6441943a17cb8fc44abfe3aa27702db7a2274970996dcbabd11003624
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

Release files / pipedrivepy-1.0.0b0-py3-none-any.whl

Download URL pipedrivepy-1.0.0b0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f79b01bccf9860d3e4431529125ec2b3c2a73976ebcf9fea78c69d193c84b1b
BLAKE2b-256 checksum
How to use checksums
2759ab7b8949702ee821348cfaf26f966844772d5aa5e774e2eed5bef2bda473
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

Security for pipedrivepy 1.0.0b0

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page